Skip to content

gurpreet's blog

thoughts and moments to revisit

  • About
  • Topics
    • General
    • Fast Forward
    • Productivity
    • Numbers
    • Content & SEO
  • Bookmarks
    • AI
    • Nuggets
  • Toggle search form

Easy passwords for Nostr login with SHA-256

Posted on August 10, 2025June 11, 2026 By Editor No Comments on Easy passwords for Nostr login with SHA-256

The way I want to login is – by remembering my passwords, that are easy. Cryptic passwords are out of memory bounds, so alternatively, we can take an easy password or phrase, and then applying a simple process to complicate it.
Since nostr requires your secret key nsec to login, which is a long hex number,  we can  produce this long Hex No by doing a SHA256 on a long but simple phrase that you can remember/retrieve easily.
Then for security and ease of use, i can sign in with a Signer like NOS2x on my desktop browser, and Amber bunker on my android mobile.

Table of Contents

Toggle
  • Here’s an Example
  • How to sha256?

Here’s an Example

Step 1. Choose a phrase like – ‘ Humpty Dumpty sat on a wall ‘
Step 2. SHA-256 it ( see the process below ) . This now outputs a long Hex number:
1b9ed7aa6346ee2c6e0faf0f75997b9308916160239b1844e7a77bee183f355d .
A point here. Although there are quite a number of online SHA256 generators, I prefer using the method, as below, in offline mode locally.
Step 3. Just put this in your Nos2x signer to create the NSec, or Nostr Secret Key . This Nos2x Signer is available in the chrome webstore, as well as on github at https://github.com/fiatjaf/nos2x

And you can use this for your identity for Humpty Dumpty on any app on Nostr. Happy Nostr-ing!

How to sha256?

In a command line, run the command:

For Windows:

certutil -hashfile [file location] SHA256. For example:
certutil -hashfile C:\Users\user1\Documents\myseedphrase.txt SHA256

For Linux:

sha256sum [file location]. For example:
sha256sum ~/Documents\myseedphrase.txt

For Mac OS:

shasum -a 256 [file location]. For example:
shasum -a 256 ~/Documents\myseedphrase.txt
Learning Tags:Nostr

Post navigation

Previous Post: First Steps on Nostr
Next Post: Installing Nostr Relay on the phone, and on pc?

Related Posts

Installing Nostr Relay on the phone, and on pc? Learning
ollama minmax M2.7 – this post for reference only Learning
Fliki faceless video masterclass, YouTube algorithm Learning
Self learning course by Sandeep & Inderjot Bookmarks

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

7.

Recent Posts

  • The One Thing AI Still Can’t Replace
  • infinite canvas board thinkinfinity
  • ollama minmax M2.7 – this post for reference only
  • A FirstPass Crawler (in node.js) to List URLs of any website
  • the gst invoice generator

Recent Comments

  1. RAVJEET SINGH MADAAN on The One Thing AI Still Can’t Replace
  2. This Year's 2025 Calendar memorized - a simple productivity hack for the numerically inclined - gurpreet's blog on 2026 Calendar [366 240 251 361] – Instant Day Finder
  3. 2026 Calendar [] - gurpreet's blog on This Year’s 2025 Calendar memorized – a simple productivity hack for the numerically inclined
  4. AI evolution - Its Vibe - gurpreet's blog on VERSA Ledger – A Versatile Ledger- and a diary
  5. 2020s - this Age evolution is now in the Age of Tokenization, and Robotic AI, of course - gurpreet's blog on AI evolution – Its Vibe

Search

Tags

AI content Education Hugo incomplete jeevan-sutra Learning life-lessons Listen Maths Nostr sikh Tools Watch later again Wordpress

Categories

Bookmarks Content & SEO Diary Fast Forward general Learning Nuggets Numbers Productivity Revisit sikhism

Other

  • all posts

Copyright © 2026 gurpreet's blog.

Powered by PressBook Grid Dark theme