Skip to content

Instantly share code, notes, and snippets.

@Hunam6
Last active April 6, 2024 02:45
Show Gist options
  • Save Hunam6/45ddf6f29e88af2d137efdded899cb25 to your computer and use it in GitHub Desktop.
Save Hunam6/45ddf6f29e88af2d137efdded899cb25 to your computer and use it in GitHub Desktop.
How to Generate a SHA-256 from your password

Windows

Open Command Prompt.

Paste this command and replace your-password with your password.

echo|set /p="your-password" > %TMP%/hash.txt | certutil -hashfile %TMP%/hash.txt SHA256 | findstr /v "hash"

MacOS

Open Terminal.

Paste this command and replace your-password with your password.

echo -n 'your-password' | shasum -a 256

Linux

Open your terminal.

Paste this command and replace your-password with your password.

echo -n 'your-password' | sha256sum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment