- Home
- Tools
- Developer Tools
- Hash Generator
- SHA-512 Hash Generator
SHA-512 Hash Generator
Get the SHA-512 of a text or a file in your browser: 128 hexadecimal characters, or 88 in Base64. With a tab for HMAC-SHA-512.
0 bytes as UTF-8
Result
SHA-512
–
SHA-512 in short
SHA-512 produces 512 bits, written as 128 hexadecimal characters. It is the largest member of the SHA-2 family and works like SHA-256, but with 64-bit numbers instead of 32-bit ones and with 80 rounds instead of 64.
| Length | 512 bits (64 bytes) |
|---|---|
| Written as hex | 128 characters |
| Written as Base64 | 88 characters |
| Of nothing at all (the empty text) | cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e |
| Of the word hello | 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043 |
Is it safer than SHA-256?
Not in a way that matters today. No known attack comes near either of them, and a result of 256 bits is already far beyond guessing. In practice the choice is made for you: use the algorithm the checksum you were given was made with. A value of 128 hexadecimal characters is a SHA-512.
Speed differs more than safety. SHA-512 takes in 128 bytes per step where SHA-256 takes 64, which makes it the faster of the two on a 64-bit processor that has no special instructions for hashing. Many current processors do have instructions for SHA-256, and there it is the other way round.
Where it is used
SHA512SUMSfiles next to downloads, checked withsha512sum.- The Ed25519 signatures behind many SSH keys use SHA-512 inside.
- Linux systems long stored passwords in a format that starts with
$6$and is built on SHA-512. That is not one hash: it runs SHA-512 thousands of times with a salt, because a single fast hash is too easy to guess against.
For passwords in your own software, use bcrypt, scrypt or Argon2.
The hash generator shows MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32 of the same input next to each other.