ripemd160 hash generator online
Create the ripemd160 hash of any text: 40 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 ripemd160: don't matter.
hello world- Hex
98c615784ccb5fe5936fbc0cbe9dfdb408d92f0f- HEX (upper case)
98C615784CCB5FE5936FBC0CBE9DFDB408D92F0F- Base64
mMYVeEzLX+WTb7wMvp39tAjZLw8=
Files are read in your browser and never uploaded.
What is RIPEMD-160?
RIPEMD-160 produces a 160-bit hash (40 hex characters). It was designed in Europe in 1996 as an open alternative to SHA-1. Today it is best known from Bitcoin: an address is based on RIPEMD-160(SHA-256(public key)), called HASH160.
- Bitcoin addresses (HASH160)
- OpenPGP (legacy)
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…
HASH160: SHA-256, then RIPEMD-160
Bitcoin shortens a public key with two hashes: RIPEMD-160 of the SHA-256 of the key bytes. Paste a public key in hex (33 or 65 bytes) or any hex data.
- SHA-256
…- HASH160 = RIPEMD-160(SHA-256)
…
The example is the public key of private key 1.
The same result in your code
Every snippet prints 98c615784ccb5fe5936fbc0cbe9dfdb408d92f0f for hello world, the same as the tool. They are run against PHP's hash() before each release.
echo hash('ripemd160', 'hello world');
import hashlib print(hashlib.new("ripemd160", "hello world".encode()).hexdigest())
Needs an OpenSSL build that still offers RIPEMD-160.
import { createHash } from "node:crypto"; console.log(createHash("ripemd160").update("hello world").digest("hex"));
printf '%s' 'hello world' | openssl dgst -ripemd160
RIPEMD-160 test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | ripemd160 |
|---|---|
| empty string | 9c1185a5c5e9fc54612808977ee8f548b2258d31 |
abc | 8eb208f7e05d987a9b044a8e98c6b087f15a0bfc |
hello world | 98c615784ccb5fe5936fbc0cbe9dfdb408d92f0f |
The quick brown fox jumps over the lazy dog | 37f332f68db77bd9d7edd4969571ad671cf9dd3b |
Why your RIPEMD-160 doesn't match
A Bitcoin public key hash is RIPEMD-160 of the SHA-256 of the key bytes. Hashing the key with RIPEMD-160 alone gives a different value.
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.
The RIPEMD family side by side
The same text, every RIPEMD algorithm. Shown for hello world; type in the tool above to use your text.
How fast is RIPEMD-160?
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 RIPEMD-160
Can RIPEMD-160 be decrypted?
No. RIPEMD-160 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" RIPEMD-160 look the hash up in large tables of known inputs, which only works for short or common strings.
How long is a RIPEMD-160 hash?
A RIPEMD-160 hash is always 160 bits, written as 40 hexadecimal characters (20 bytes), no matter how long the input is.
Is RIPEMD-160 secure?
It is not known to be broken in practice, but RIPEMD-160 is rarely used, little studied today and not recommended for new designs. Use SHA-256 or SHA3-256 instead.
Should I hash passwords with RIPEMD-160?
No. RIPEMD-160 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.
How is RIPEMD-160 used in Bitcoin?
A public key is hashed with SHA-256, then with RIPEMD-160 (HASH160). The 20-byte result is the core of a classic Bitcoin address.