Pcornel
Security · Hashing

SHA-512

Cheat sheet · https://pcornel.dk/topic.php?topic=4709

Back to the Topic

Answer

SHA-512 is the SHA-2 variant with a 512-bit digest. It is often faster than SHA-256 on 64-bit CPUs and is used where a longer hash or higher security margin is wanted.

Remember

  • SHA-512 gives a 512-bit digest.
  • Often faster than SHA-256 on 64-bit CPUs.
  • Part of the SHA-2 family.

First checks

  • sha512sum file — SHA-512
  • openssl dgst -sha512 file — OpenSSL
  • SHA-512/256 variant — truncated option

Verify in this order

data → SHA-512 → 64-byte digest

Where it usually breaks

First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4709

Confirmation

Confirm action

Continue?