gost-crypto hash generator online
Create the gost-crypto hash of any text: 64 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.
Compare, hash a file, copy any format
Type text in the tool above or choose a file. Case, spaces and prefixes like gost-crypto: don't matter.
hello world- Hex
c5aa1455afe9f0c440eec3c96ccccb5c8495097572cc0f625278bd0da5ea5e07- HEX (upper case)
C5AA1455AFE9F0C440EEC3C96CCCCB5C8495097572CC0F625278BD0DA5EA5E07- Base64
xaoUVa/p8MRA7sPJbMzLXISVCXVyzA9iUni9DaXqXgc=
Files are read in your browser and never uploaded.
What is GOST R 34.11-94 (CryptoPro)?
gost-crypto is GOST R 34.11-94 with the CryptoPro S-boxes from RFC 4357, the parameters real Russian crypto software used. Same algorithm as "gost", different constants, completely different hash. It was replaced by Streebog (GOST R 34.11-2012).
Change one letter, see what happens
A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.
……Calculating…
The same result in your code
Every snippet prints c5aa1455afe9f0c440eec3c96ccccb5c8495097572cc0f625278bd0da5ea5e07 for hello world, the same as the tool. They are run against PHP's hash() before each release.
echo hash('gost-crypto', 'hello world');
Python, JavaScript, Java and Go have no built-in function for it. If you use a library, compare its output with the test values above.
GOST R 34.11-94 (CryptoPro) test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | gost-crypto |
|---|---|
| empty string | 981e5f3ca30c841487830f84fb433e13ac1101569b9c13584ac483234cd656c0 |
abc | b285056dbf18d7392d7677369524dd14747459ed8143997e163b2986f92fd42c |
hello world | c5aa1455afe9f0c440eec3c96ccccb5c8495097572cc0f625278bd0da5ea5e07 |
The quick brown fox jumps over the lazy dog | 9004294a361a508c586fe53d1f1b02746765e71b765472786e4770d565830a76 |
Why your GOST R 34.11-94 (CryptoPro) doesn't match
"gost" and "gost-crypto" use different S-boxes and give different hashes. Software from Russia (CryptoPro, OpenSSL's GOST engine) usually means gost-crypto.
echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.
The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.
Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".
Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.
Whirlpool, Snefru and GOST side by side
The same text, every historic algorithm. Shown for hello world; type in the tool above to use your text.
| Algorithm | Hash | Bits |
|---|---|---|
| whirlpool | 8d8309ca6af848095bcabaf9a53b1b6ce7f594c1434fd6e5177e7e5c20e76cd30936d8606e7f36acbef8978fea008e6400a975d51abe6ba4923178c7cf90c802 | 512 |
| snefru | 902b49fa8b0828b44d8ac069111899bbfaf51d334485e4b28e90c93f63bb86dd | 256 |
| snefru256 | 902b49fa8b0828b44d8ac069111899bbfaf51d334485e4b28e90c93f63bb86dd | 256 |
| gost | 1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a | 256 |
| gost-crypto | c5aa1455afe9f0c440eec3c96ccccb5c8495097572cc0f625278bd0da5ea5e07 | 256 |
How fast is GOST R 34.11-94 (CryptoPro)?
Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.
Questions about GOST R 34.11-94 (CryptoPro)
Can GOST R 34.11-94 (CryptoPro) be decrypted?
No. GOST R 34.11-94 (CryptoPro) is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" GOST R 34.11-94 (CryptoPro) look the hash up in large tables of known inputs, which only works for short or common strings.
How long is a GOST R 34.11-94 (CryptoPro) hash?
A GOST R 34.11-94 (CryptoPro) hash is always 256 bits, written as 64 hexadecimal characters (32 bytes), no matter how long the input is.
Is GOST R 34.11-94 (CryptoPro) secure?
It is not known to be broken in practice, but GOST R 34.11-94 (CryptoPro) is rarely used, little studied today and not recommended for new designs. Use SHA-256 or SHA3-256 instead.
Should I hash passwords with GOST R 34.11-94 (CryptoPro)?
No. GOST R 34.11-94 (CryptoPro) is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.
What is the difference between gost and gost-crypto?
The S-boxes. "gost" uses the test parameters from the standard, "gost-crypto" the CryptoPro parameters from RFC 4357. The results differ completely.