SHA-512
SHA-512 is the 512-bit-output member of the SHA-2 family; faster than SHA-256 on 64-bit platforms, providing a higher security margin.
Purpose
Provides a 512-bit secure hash for high-security needs and 64-bit-optimized scenarios.
Mechanism
Processes input in 1024-bit blocks, maintaining a 512-bit state (eight 64-bit words). Each block goes through 80 steps of nonlinear transforms updating the state. Outputs a 512-bit digest. Efficient on 64-bit platforms due to word-length match.
Use cases
- High-security digital signatures
- PGP/GPG key fingerprints
- Crypto library internals
- Blockchains (some)
Examples
- Input
helloOutput9b71d224bd62f3785d4d2262f6d2c3c2...512 bits = 128 hex characters
Common errors
- Assuming a longer output is always more secure
- 256 bits suffice; choose per need
Related terms
SHA-256
SHA-256 is the 256-bit-output member of the SHA-2 family, widely used in TLS, blockchains, and cryptographic applications, with no known practical attacks. GLOSSARY
SHA-3 (Keccak)
SHA-3 is the hash standard based on the Keccak sponge construction; structurally entirely different from SHA-2, it serves as a fallback in case SHA-2 is broken. GLOSSARY
BLAKE2
BLAKE2 is a hash function designed by Jean-Philippe Aumasson et al.; faster than MD5 with security comparable to SHA-3, a high-performance alternative to SHA-2/3. GLOSSARY