SHA-1 hash
SHA-1 hash: process standard inputs with validation using self-contained pure logic, suitable for local checks and test vectors.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
Pure local computation; no data is uploaded.
Enter input to see the result
Output length: 0 · Input bytes: 0
What this tool does
- Compute the SHA-1 digest of any text (UTF-8) as 40 lowercase hex characters.
- Check "uppercase output" for uppercase hex; the digest length and the input UTF-8 byte count are shown next to it.
- Empty input is rejected; SHA-1 is no longer fine for security, but it is handy for checking existing checksums such as git object IDs.
Example
Input
Hello, world!
Output
943a702d06f34599aee1f8da8ef9f7296031d699
The example prints the 40-character digest of UTF-8 input, matching published vectors such as RFC 3174.
Frequently asked questions
Is input uploaded?
No. The algorithm runs locally in a self-contained pure function.
How should I verify a result?
Verify with published vectors: RFC 3174 appendix A for SHA-1 (abc, the 448-bit message and one million a), and the FIPS 180-4 examples for SHA-256 and SHA-512. The unit tests here pin exactly those vectors, including the empty-string digest and the multi-block padding cases. Note that input is UTF-8 and output is lowercase hex.
Why is empty input rejected?
Cryptographic tools need an explicit message boundary; empty text usually means no value was entered.
Keywords:SHA-1 hashcryptographystandard vectorlocalhash