gost hash generator online
Create the gost 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: don't matter.
hello world- Hex
1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a- HEX (upper case)
1BB6CE69D2E895A78489C87A0712A2F40258D1FAE3A4666C23F8F487BEF0E22A- Base64
G7bOadLolaeEich6BxKi9AJY0frjpGZsI/j0h77w4io=
Files are read in your browser and never uploaded.
What is GOST R 34.11-94?
GOST R 34.11-94 is the Russian hash standard from 1994 with a 256-bit result. PHP's "gost" uses the S-boxes from the standard's test parameters. It was replaced by Streebog (GOST R 34.11-2012) and is only needed for old Russian systems.
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 1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a for hello world, the same as the tool. They are run against PHP's hash() before each release.
echo hash('gost', '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 test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | gost |
|---|---|
| empty string | ce85b99cc46752fffee35cab9a7b0278abb4c2d2055cff685af4912c49490f8d |
abc | f3134348c44fb1b2a277729e2285ebb5cb5e0f29c975bc753b70497c06a4d51d |
hello world | 1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a |
The quick brown fox jumps over the lazy dog | 77b7fa410c9ac58a25f49bca7d0468c9296529315eaca76bd1a10f376d1f4294 |
Why your GOST R 34.11-94 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?
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
Can GOST R 34.11-94 be decrypted?
No. GOST R 34.11-94 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 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 hash?
A GOST R 34.11-94 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 secure?
It is not known to be broken in practice, but GOST R 34.11-94 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?
No. GOST R 34.11-94 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.