SHA-1 generator
Generate a SHA-1 hash for any string input.
About this tool
The SHA-1 generator turns any text into its SHA-1 hash: a 160-bit value, written as 40 hexadecimal characters. The same text always gives the same hash, and changing a single character changes the whole result. The text is hashed as UTF-8, exactly as you typed it, including spaces and line breaks, and it isn’t stored.
SHA-1 example
The SHA-1 hash of the word hello is:
aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-1 at a glance
| Output | 160 bits, 40 hex characters |
| Family | SHA-1, designed by the NSA and published by NIST |
| Published | 1995 |
| Safe for security today | No, broken |
Is SHA-1 secure?
No. Google and CWI Amsterdam published the first real SHA-1 collision in 2017 (“SHAttered”), two different PDFs with the same hash, and browsers stopped trusting SHA-1 certificates the same year.
What SHA-1 is used for
Git names every commit and file by its SHA-1 hash, though newer versions can use SHA-256 instead, and many older checksum lists and APIs still use SHA-1.
Hashing passwords?
Don’t store passwords as a plain SHA-1 hash. Fast hashes like this one can be guessed millions or billions of times a second on a graphics card. Use a slow password hash made for the job, such as bcrypt or Argon2, which also adds a random salt to every password. The bcrypt generator makes and checks bcrypt hashes.