Skip to content

SHA-1 Generator

Generate the SHA-1 hash of any text with this SHA-1 Generator. Enter your text and the tool encodes it as UTF-8, computes the 160-bit SHA-1 digest and returns it as a 40 character lowercase hexadecimal string, the same value sha1sum and standard libraries produce. Useful for developers verifying legacy checksums, inspecting Git style identifiers or matching older APIs that still expect SHA-1.

Reset

Frequently asked questions

What does the SHA-1 Generator return?

It returns the SHA-1 digest of your text as 40 lowercase hexadecimal characters, representing 160 bits. Identical text always gives the identical hash.

What is the SHA-1 hash of hello?

The lowercase word hello without a trailing newline hashes to aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d. Use it as a quick test value when comparing with your own code.

Why does my SHA-1 hash not match another tool?

The text is hashed exactly as entered, including spaces, tabs and line breaks. A trailing newline added by echo, or Windows CRLF line endings, produce a completely different hash.

How is Unicode text encoded?

The tool encodes text as UTF-8 before hashing, the default in most languages and terminals. A system that hashes UTF-16 or Latin-1 bytes of the same characters gets a different result.

Is SHA-1 still secure?

No. A practical SHA-1 collision was published in 2017, and browsers and certificate authorities stopped accepting SHA-1 signatures. Use SHA-256 or SHA-512 for signatures, integrity checks against tampering and new designs.

Is this the same hash Git uses for commits?

Not directly. Git hashes a header such as blob followed by the content length and a null byte before the content, so a plain SHA-1 of the file text differs from the Git object ID.

Can I hash a file?

The tool hashes text you paste or type, not uploaded files. For binary files use sha1sum on Linux, shasum on macOS or Get-FileHash -Algorithm SHA1 in PowerShell.

Can SHA-1 be decrypted?

No, SHA-1 is a one way function and has no key to decrypt with. Short or common inputs can still be found in lookup tables, so never treat a hash of a weak secret as protection.

Does the tool use a salt or an HMAC key?

No, it computes plain SHA-1 of the text exactly as given. For keyed hashes use an HMAC tool, and for passwords use a slow algorithm such as bcrypt or Argon2.

How much text can I hash?

Enter at least one character and up to 5 MB of text; larger input is rejected with a message. The result is identical to the SHA-1 option of the Hash Generator.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.