SHA-1(Base64) Hash

Technical details, regex signatures, and cracking commands for the SHA-1(Base64) algorithm.

Regex Identification Signature:
^{SHA}[a-z0-9\/+]{27}=$
Hashcat Command (Mode: 101):
John the Ripper Command:
← Back to Hash Identifier

What is SHA-1(Base64)?

SHA-1 (Secure Hash Algorithm 1) was originally designed by the NSA in the mid-1990s as part of the SHA family of cryptographic hash functions, standardized as FIPS PUB 180-1 in 1995. It operates as a 160-bit (20-byte) hash function producing a fixed-length digest by processing input data through a series of bitwise operations—including major, majority, and chaining functions—across five rounds of compression, each incorporating a unique constant and message schedule derived from the input. While SHA-1 was initially intended for digital signatures (e.g., via RSA), its output was later often encoded in **Base64** for human-readable representation or storage in environments requiring ASCII-compatible formats, such as HTTP headers, JSON payloads, or database fields. This hybrid format (SHA-1(Base64)) became prevalent in legacy systems, APIs, and authentication protocols (e.g., OAuth, legacy HMAC comparisons) due to its compactness and compatibility with text-based infrastructures, though it was never explicitly designed for this purpose.

SHA-1’s vulnerability stems from fundamental cryptographic flaws exacerbated by practical implementation choices. Its 160-bit output, while longer than MD5’s 128 bits, was deemed insufficient for collision resistance by modern standards due to advances in brute-force and preimage attacks; by 2005, SHA-1’s collision resistance was broken theoretically (via the **Biham-Shamir attack**), and practical collisions were demonstrated in 2017 (e.g., the **SHA-1bk** attack). The absence of salting or keyed hashing in raw SHA-1 further enables rainbow table attacks when used for password storage. Additionally, GPU/ASIC optimizations (e.g., **SHA-1 cracking via FPGA clusters**) and parallelizable compression rounds allow adversaries to compute hashes at rates exceeding 100+ Ghasps, rendering brute-force attacks feasible for specific targets. The Base64 encoding itself introduces no security, but it may obscure entropy in plaintext contexts, while the lack of HMAC or keyed variants in SHA-1(Base64) usage exposes it to length-extension attacks when concatenated with secrets. These weaknesses render SHA-1(Base64) unsuitable for modern security applications, with NIST and industry bodies recommending migration to SHA-2 or SHA-3 variants.

Identifying SHA-1(Base64) Hashes

Identifying a hash blindly is often difficult because multiple algorithms can output strings of the exact same length. For example, a standard 32-character hexadecimal string could be MD5, NTLM, MD4, or LM. To definitively identify SHA-1(Base64), security researchers analyze the hash against a strict regular expression (regex) signature (shown above) to find structural matches.

How to Crack SHA-1(Base64)

If you need to recover the plaintext password for a SHA-1(Base64) hash during a penetration test or forensics investigation, you must supply the correct module ID to your cracking software. Use the exact commands provided at the top of this page to target the hash successfully.