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.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

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.

Formats for hello world
Hex
1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a
HEX (upper case)
1BB6CE69D2E895A78489C87A0712A2F40258D1FAE3A4666C23F8F487BEF0E22A
Base64
G7bOadLolaeEich6BxKi9AJY0frjpGZsI/j0h77w4io=

Files are read in your browser and never uploaded.

In short

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.

LegacyNo practical break of the full algorithm is public, but it is rarely used and not recommended for new designs.
Try it

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.

Hash A…
Hash B…

Calculating…

Use it in code

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.

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

Test values

GOST R 34.11-94 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputgost
empty stringce85b99cc46752fffee35cab9a7b0278abb4c2d2055cff685af4912c49490f8d
abcf3134348c44fb1b2a277729e2285ebb5cb5e0f29c975bc753b70497c06a4d51d
hello world1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a
The quick brown fox jumps over the lazy dog77b7fa410c9ac58a25f49bca7d0468c9296529315eaca76bd1a10f376d1f4294
Common mistakes

Why your GOST R 34.11-94 doesn't match

Two GOSTs

"gost" and "gost-crypto" use different S-boxes and give different hashes. Software from Russia (CryptoPro, OpenSSL's GOST engine) usually means gost-crypto.

A line break sneaks in

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.

Same text, different 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.

Upper or lower case

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:".

This tool trims and uses CRLF

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.

Compare

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.

AlgorithmHashBits
whirlpool8d8309ca6af848095bcabaf9a53b1b6ce7f594c1434fd6e5177e7e5c20e76cd30936d8606e7f36acbef8978fea008e6400a975d51abe6ba4923178c7cf90c802512
snefru902b49fa8b0828b44d8ac069111899bbfaf51d334485e4b28e90c93f63bb86dd256
snefru256902b49fa8b0828b44d8ac069111899bbfaf51d334485e4b28e90c93f63bb86dd256
gost1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a256
gost-cryptoc5aa1455afe9f0c440eec3c96ccccb5c8495097572cc0f625278bd0da5ea5e07256
Measured on your device

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.

FAQ

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.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.