Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

SHA-512

Direct 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.

When to use this

Use this when a longer SHA-2 digest is wanted.

First 30 seconds

1. SHA-512: 512-bit SHA-2; faster than SHA-256 on 64-bit CPUs.

2. Larger digests.

3. SHA-512/256 avoids length extension.

4. Used in password hash schemes ($6$).

5. Fine for integrity.

Operational verification

data → SHA-512 → 64-byte digest

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Choosing SHA-512 thinking it is "more secure" when SHA-256 already exceeds needs.
  • Confusing SHA-512 with SHA-512/256 (different initial values and output).
  • Using SHA-512 for password storage without a slow KDF.
Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Key commandGet-FileHash file -Algorithm SHA512
Scope / prerequisiteUse this when a longer SHA-2 digest is wanted.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 SHA-2 family Narrow the fault
VariantOutputInternal state
SHA-224 / SHA-256224 / 256 bits32-bit words
SHA-384 / SHA-512384 / 512 bits64-bit words
SHA-512/224, SHA-512/256224 / 256 bits64-bit, truncated, no length extension
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • SHA-512 gives a 512-bit digest.
  • Often faster than SHA-256 on 64-bit CPUs.
  • Part of the SHA-2 family.
Key checks
  • sha512sum file — SHA-512
  • openssl dgst -sha512 file — OpenSSL
  • SHA-512/256 variant — truncated option
ReferenceWhy it matters1 section · depth on demand

SHA-512 vs SHA-256

SHA-256SHA-512
Digest256 bits512 bits
Internal word size32-bit64-bit
Speed on 64-bit CPUsSlower in softwareOften faster
Hardware accelerationSHA-NI widely availableLess common

Both are secure. SHA-512/256 (truncated) avoids length extension. SHA-384 is common in TLS suites and CNSA profiles.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

SHA-512 is a SHA-2 hash producing a 512-bit digest. It offers a larger security margin than SHA-256 and is often faster on 64-bit processors because it works on 64-bit words. SHA-512/256 truncates the output to 256 bits while keeping SHA-512's internal design.

sha512sum backup.tar.gz
openssl dgst -sha512 file.bin
UseExample
File integrityRelease checksums
HMAC-SHA512API signing, JWT HS512
Linux password hashing$6$ (sha512crypt) in /etc/shadow — acceptable, yescrypt preferred on newer systems
Ed25519Uses SHA-512 internally

Choose SHA-256 for broad compatibility and SHA-512/SHA-384 where policies require larger margins.

ReferenceConfiguration & state1 section · depth on demand
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

Authoritative/upstream documentation reviewed for bounded claims in Hashing → SHA-512. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/fips/180-4/upd1/final · confidence 94%
Confirmation

Confirm action

Continue?