BLAKE2b Generator
Compute BLAKE2b hashes of any text with a choice of digest length from 128 to 512 bits. The tool encodes your input as UTF-8, runs the unkeyed BLAKE2b function from RFC 7693 and returns the digest in hex or Base64. Developers use it to match the output of libsodium, Argon2 internals, b2sum and other software that relies on BLAKE2b for fast, secure hashing.
Frequently asked questions
What is BLAKE2b?
BLAKE2b is a cryptographic hash function specified in RFC 7693, optimized for 64-bit processors. It is faster than MD5 and SHA-2 in software while offering security comparable to SHA-3. It can produce any digest length from 1 to 64 bytes.
Which digest lengths can I choose?
You can choose 512, 384, 256, 160 or 128 bits. The length is part of BLAKE2b's parameters, so BLAKE2b-256 is not simply the first half of BLAKE2b-512. Pick the length the other system uses, or the output will not match.
What are the BLAKE2b test vectors?
BLAKE2b-512 of an empty string is 786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce. For abc, RFC 7693 lists ba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b12bb6fdbffa2d17d87c5392aab792dc252d5de4533cc9518d38aa8dbf1925ab92386edd4009923. This tool returns both.
Does the tool match the b2sum command?
Yes. b2sum computes BLAKE2b-512 by default, which is this tool's default length. Remember that b2sum hashes the file's bytes, so a text with a final newline gives a different digest than the same text without one.
Can I use a key with BLAKE2b here?
No. The tool computes unkeyed BLAKE2b only. For a message authentication code, use the HMAC-SHA256 Generator on this site or a library that supports keyed BLAKE2b.
What is the difference between BLAKE2b and BLAKE2s?
BLAKE2b works on 64-bit words and outputs up to 512 bits, while BLAKE2s uses 32-bit words and outputs up to 256 bits. BLAKE2s is faster on small 32-bit devices. This tool computes BLAKE2b.
How is the text encoded?
Your input is converted to UTF-8 bytes and hashed exactly as entered. Whitespace and line breaks are included, so trim them first if the other side does.
Is BLAKE2b suitable for password hashing?
Not directly. It is fast, which helps attackers who guess passwords. Argon2, which uses BLAKE2b internally, is the right choice for passwords and is available in the Argon2 Generator.
How much text can I hash?
The tool accepts up to 5 MiB of text per request and computes the hash in WebAssembly on the server. The input is not stored.
Which output encoding should I use?
Hex is standard for checksums and matches b2sum output. Base64 is shorter and suits JSON, headers and configuration files. Both carry the same bytes.