Developer Playground
SHA-1 Hash & HMAC
SHA-1 (Secure Hash Algorithm 1) is a cryptographic hash function that converts input data into a 160-bit (20-byte) hash value. Not recommended due to security vulnerabilities.Optionally, you can use HMAC mode with a secret key.
SHA-1 Hash Generator
Generate SHA-1 hash or HMAC for your input text.
What is SHA-1?
SHA-1 (Secure Hash Algorithm 1) is a cryptographic hash function that takes an input and produces a 160-bit (20-byte) hash value, typically rendered as a 40-digit hexadecimal number. Designed by the United States National Security Agency (NSA), it was widely used in security protocols like TLS, SSL, and SSH.
Why is SHA-1 no longer recommended?
Over time, cryptanalysts discovered ways to generate "collisions" in SHA-1, meaning they could find two completely different files that produce the exact same SHA-1 hash. Because of this critical vulnerability, major tech companies (including Google and Microsoft) officially deprecated SHA-1. Modern applications should use SHA-2 (like SHA-256) or SHA-3 instead.
How to use this tool
While not recommended for security purposes, SHA-1 is still useful for checksums, Git commit hashes, or interacting with legacy systems. Simply select your mode (Hash or HMAC), choose an output format (Hex or Base64), and type your input text to instantly generate the SHA-1 hash.