Xerobit

RIPEMD-160 Hash Generator

Enter any text to compute its RIPEMD-160 hash. This ripemd160 generator produces a 40-character hexadecimal digest entirely in your browser, so your data is never uploaded to a server. It is useful for verifying file integrity or exploring legacy cryptographic workflows.

Result

9c1185a5c5e9fc54612808977ee8f548b2258d31

How to use the ripemd-160 hash generator

  1. Type or paste your text into the Text to hash field.
  2. The tool computes the ripemd160 digest instantly as you type.
  3. Copy the 40-character hexadecimal result from the output area.

How RIPEMD-160 works

RIPEMD-160 processes input in 512-bit (64-byte) blocks. The message is padded with a single 1 bit, followed by zeros, and finally the original message length as a 64-bit little-endian integer so the total length is a multiple of 512 bits.

The algorithm maintains five 32-bit state variables initialized to specific constants: h0 = 0x67452301, h1 = 0xEFCDAB89, h2 = 0x98BADCFE, h3 = 0x10325476, h4 = 0xC3D2E1F0. Each block runs through two parallel computation paths (left and right), each consisting of 80 steps divided into five rounds of 16 operations. Every step applies a non-linear boolean function, adds a constant, rotates the result left by a specified amount, and updates the working variables. After all blocks are processed, the final state words are combined using a specific cross-addition pattern and concatenated in little-endian byte order to produce the 160-bit digest.

Test vectors

The following table shows standard test vectors you can use to verify any ripemd160 implementation. These values were published by the algorithm's designers in 1996.

InputRIPEMD-160 Hash
(empty string)9c1185a5c5e9fc54612808977ee8f548b2258d31
a0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
abc8eb208f7e05d987a9b044a8e98c6b087f15a0bfc
message digest5d0689ef49d2fae572b881b123a85ffa21595f36
abcdefghijklmnopqrstuvwxyzf71c27109c692c1b56bbdceb5b9d2865b3708dbc

Where RIPEMD-160 is used

Although newer algorithms like those in the SHA-256 family are preferred for most new applications, ripemd160 remains important in specific domains. Its most prominent modern use is in Bitcoin and several other cryptocurrencies, where it is applied after SHA-256 to create shorter, more manageable addresses. Combining two different hash functions is commonly explained as a hedge against a weakness in either one.

Some legacy systems and European software projects also rely on this hash function because it was developed independently of the US National Security Agency, unlike the SHA family. If you need to verify checksums for older files or interact with blockchain address generation, computing a correct RIPEMD-160 digest is essential.

Comparison with other hash functions

RIPEMD-160 produces a 160-bit output, identical in length to SHA-1. However, their internal structures differ significantly. While SHA-1 uses a single computation path with 80 rounds, RIPEMD-160 uses two parallel paths that are combined at the end of each block. The dual-path design was introduced after collision attacks were found against MD4 and the original RIPEMD.

Compared to MD5, which outputs only 128 bits, RIPEMD-160 offers a larger output space and stronger resistance to brute-force collision searches. For general-purpose hashing today, SHA-256 or SHA-3 are recommended, but RIPEMD-160 retains its niche in cryptocurrency protocols and legacy verification tasks.

Common mistakes when hashing

A frequent error when generating hashes is accidentally including trailing whitespace or newline characters in the input. The string abc and the string abc\n produce completely different digests. Always ensure your input matches exactly what you intend to hash.

Another issue involves character encoding. This tool encodes your input as UTF-8 before hashing, which is the standard behavior for web applications. If you are comparing results with a command-line utility, make sure that utility is also using UTF-8 rather than a locale-specific encoding like Latin-1. Finally, remember that hashing is not encryption: a hash cannot be reversed to recover the original text. If you need reversible protection, look into tools like AES encryption instead.

Worked examples

ExampleInputResult
Empty string9c1185a5c5e9fc54612808977ee8f548b2258d31
The letter 'a'Text to hash: a0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
abcText to hash: abc8eb208f7e05d987a9b044a8e98c6b087f15a0bfc
message digestText to hash: message digest5d0689ef49d2fae572b881b123a85ffa21595f36

FAQ

What is RIPEMD-160?

RIPEMD-160 is a cryptographic hash function designed in 1996 by Hans Dobbertin, Antoon Bosselaers, and Bart Preneel. It produces a 160-bit (20-byte) message digest, typically displayed as a 40-character hexadecimal string.

Is RIPEMD-160 secure?

No practical collision attacks have been demonstrated against the full RIPEMD-160 algorithm, making it more resilient than SHA-1 or MD5. However, for new security-critical applications, SHA-256 or SHA-3 are generally recommended due to wider scrutiny and adoption.

Why does Bitcoin use RIPEMD-160?

Bitcoin applies RIPEMD-160 to the SHA-256 hash of a public key to produce a 160-bit address identifier. The result is a shorter 160-bit identifier, and combining two unrelated hash functions is commonly described as a hedge against a weakness in either one.

Can I reverse a RIPEMD-160 hash to get the original text?

No. Like all cryptographic hash functions, RIPEMD-160 is a one-way operation. You cannot derive the original input from the digest. The only way to find a matching input is through exhaustive brute-force search.

Does this tool upload my text to a server?

No. The entire hashing process runs locally in your browser using JavaScript. Your input text never leaves your device and is never transmitted over the network.

How long is a RIPEMD-160 hash?

The raw digest is 160 bits, or 20 bytes. When represented as a hexadecimal string, which is the standard format, it is always exactly 40 characters long regardless of the input size.