MD2 hash for "asdfgh" is "d7334f3ceac5df25be1cd44379d2d4e7"

MD2 encoded string

d7334f3ceac5df25be1cd44379d2d4e7

Your last 10 encodings

AlgorithmStringHash
md2asdfghd7334f3ceac5df25be1cd44379d2d4e7

String "asdfgh" encoded to other algorithms

Here you can view hashes for "asdfgh" string encoded with other popular algorithms

MD2 d7334f3ceac5df25be1cd44379d2d4e7
MD4 e955626c5624223c4c82694c56b9999f
MD5 a152e841783914146e4bcd4f39100686
SHA1 7ab515d12bd2cf431745511ac4ee13fed15ab578
SHA224 30500a7f0a73546b5632475e16b28613c91d25299e8548d48fdc5510
SHA256 8588310a98676af6e22563c1559e1ae20f85950792bdcd0c8f334867c54581cd
SHA384 7c44046a38f19b71d048887f95fa3ffb2835d25aef7e297091c70dab437ed166febd56bf48e69586287f3ab2f38d5cde
SHA512/224 bd4b927a374a314f7e529c6c3254a0c61f2d94e93a679f06127e832f
SHA512/256 746ca15be501c6454a453587c267ac5d00d384a89a4baf7ba85eda07f57bb543
SHA512 2f5fb2a469a918a84c1a467d40e4ca2250f1bdaae45c928d616e51e5d73db7d56470eff626211e710083957e3b40b6ac55b58d5130e02edc4acc1f3d91f5302a
SHA3-224 d80561c1e9e2245a8b87bce0e63fa2ebb0adf0933c7e2953ad5dcb34
SHA3-256 759f11969a39a6c968454bbad1cf1cbd880e2e2b0ec30b480e4d4316ab156998
SHA3-384 fc88d4d34be1db173acc736c68eae0e2207dee91bad56b53db8e4bb5295adb0591cfd5c82dd18ad0f6468ac6ba089d5a
SHA3-512 44549e8b57478cab81e3eaf89f59c40c8fbd7660421443866506597c739bba03e292819db6e911b7540e32122cbe91e2bd3d10cf8dd8a71d9b12a95f9724897f
RIPEMD128 6f06752c3604b18c130d3f07c508fa6e
RIPEMD160 7c74ed02e960b1848650ef6f8b8cfc944eb32626
RIPEMD256 dd8aaa3f29a64fb5593c7b7526654f398bdc5ddb8ca18c54fe567fda7701e2e8
RIPEMD320 c38db2903669b0b41e82aa77350669d6c66900f20304b2052ceb8aef4c63d97467f258727e1ba57b
WHIRLPOOL c8d73ba0461e3107cadad4eb2927baddb3edc589753f8b180b191c1d9b8f173bc3e4052bc82f4c90316072eda3de94acae222cf3398b0bc1cadeaa2cc183b9cc
TIGER128,3 ce42ad804085e2e420f1506c26854723
TIGER160,3 ce42ad804085e2e420f1506c268547234e8f1210
TIGER192,3 ce42ad804085e2e420f1506c268547234e8f1210021cb191
TIGER128,4 2556846477d11cf94fcc4576d66c2395
TIGER160,4 2556846477d11cf94fcc4576d66c2395d6b3039e
TIGER192,4 2556846477d11cf94fcc4576d66c2395d6b3039e61ef4dcb
SNEFRU 40c490066018c79f8f82b5c0372cdd9004d95cdefd2f6b48df2bc5a28a0536fb
SNEFRU256 40c490066018c79f8f82b5c0372cdd9004d95cdefd2f6b48df2bc5a28a0536fb
GOST 366e6aa2659f49acd9a344e2ab1dab4d08e00f146f3692207f28ef807e60d503
GOST-CRYPTO 06af7d78b4c213863e2876dc8acaa3b76bd5e78f064dd78722f8ecb32aa75c3a
ADLER32 0883026e
CRC32 58bf65e9
CRC32B 5dd3248f
FNV132 4a7b4dba
FNV1A32 1a338168
FNV164 ce9a2be8330e501a
FNV1A64 e7692e0fcb62a068
JOAAT 2f1bb34d
HAVAL128,3 9bfa6ed3710feddfbb51639951d84253
HAVAL160,3 7796b168c9cd7d71e29623c0e15db5325ddb6a11
HAVAL192,3 dcf3ad34eda22ae00704f05ffd1e6b73b23cc9653bbfa464
HAVAL224,3 2c227a20b87c2bbfd366f9da63d3967a8dd3107511efbd83d7de4995
HAVAL256,3 2a23e6bb8c37868ec837bec9477593e4df813f7a220cbb6e0351b1f92a1662bc
HAVAL128,4 4a14eda67aa3d7f1d7f4706b52337d19
HAVAL160,4 160892cdeb73deb8e3431191c7776101d470165b
HAVAL192,4 8392df92864eb1b5d5816578fd4ca45cd8324629e0595f3a
HAVAL224,4 b46c0467f2ad92ef115b75fc88e2a2ff567edfcfa2de00b146e70d5b
HAVAL256,4 e416750132474ada2cb985b20d3090607af34c7e2dcf3be7791899d426cee1bf
HAVAL128,5 3cf432cc0573456b56c6b5143300bbed
HAVAL160,5 888e23e132da907153fa8cb9816f3acf6a857699
HAVAL192,5 2d311d125009fce3e7d0e7463012f75defb42584754c9f97
HAVAL224,5 2794a6dbc742e75f2d249046f49a4c06600c9b0c83a85e656a305450
HAVAL256,5 b5c2857d3d74e81cd4729dd2630136c0340950b86ba0215f991387ecc12fb551

Usage FAQ

Usage from Address Bar

You can use direct access to this page from your browser address bar. Type string that you need to encode with algorithm according to next schema: https://md5calc.com/hash/<ALGORITHM>/<PHRASE> For example to visit page that contains hash of "hello world" you can just visit url: https://md5calc.com/hash/md5/hello+world The another cool thing is that you can specify "json" or "plain" mode into URL and you will get only HASH in response. Schema of this future: https://md5calc.com/hash/<ALGORITHM>.<OUTPUT:plain|json>/<PHRASE> Example: https://md5calc.com/hash/md5.json/hello+world Will output only: "5eb63bbbe01eeed093cb22bb8f5acdc3"

If you have string that contains complicated urlencoded characters you can send it directly via params to avoid processing of our url parser. Use:
str - for string to encode
algo - for algorithm
output - for output type (empty, "json" or "plain")
https://md5calc.com/hash?algo=<ALGORITHM>&str=<PHRASE>&output=<OUTPUT:plain|json> https://md5calc.com/hash?algo=md5&str=hello%0Aworld https://md5calc.com/hash/md5?str=hello%0Aworld

Usage from Javascript

We have removed CORS restriction so you can use direct access to hash calculator in your javascript applications via AJAX.

Example:

var toEncode = 'hello world';
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
console.log('JSON of "'+toEncode+'" is "'+JSON.parse(xhr.response)+'"');
};
};
xhr.open('GET', 'https://md5calc.com/hash/md5.json/'+encodeURIComponent(toEncode), true);
xhr.send();
Will output: JSON of "hello world" is "5eb63bbbe01eeed093cb22bb8f5acdc3"

Usage from PHP

You can use direct access to hash in your applications.

PHP Example: <?php
$str = 'hello world';
$url ='https://md5calc.com/hash/md5.plain/'.urlencode($str);
$md5hash = file_get_contents($url);
echo 'Hash of "'.$str.'" is "'.$md5hash.'"';
Will output: Hash of "hello world" is "5eb63bbbe01eeed093cb22bb8f5acdc3"

Chains of algorithms

In some cases you can need encode string with two or more algorithms. For these cases we have introduced chains of algorithms. For example if you need to encode string according to this schema md5(sha512(sha1('hello world'))) you can do this by connecting algorithms with a double dash: https://md5calc.com/hash/md5--sha512--sha1/hello+world If you will do this in your address bar you can also use semicolon instead of double dash. https://md5calc.com/hash/md5;sha512;sha1/hello+world Pay attention that semicolon should be encoded in url, so if you use it not in your browser, you should use '%3B' instead https://md5calc.com/hash/md5%3Bsha512%3Bsha1/hello+world Such approach can be also used with "plain" and "json" mode https://md5calc.com/hash/md5--sha512--sha1.plain/hello+world https://md5calc.com/hash/md5;sha512;sha1.json/hello+world

You can also use special chain item "b64d" or "base64decode" to make base64 decode. It can help to hash any of not printable characters. Example: https://md5calc.com/hash/md5.plain/hello+world https://md5calc.com/hash/b64d--md5.plain/aGVsbG8gd29ybGQ= will be the same: 5eb63bbbe01eeed093cb22bb8f5acdc3

Carriage Return and Line Feed characters

At present time our text editor doesn't have functionality that can take into account which of those characters you want to keep in string. This problem come from browsers which normalize all of the line endings to "CRLF" ("\r\n") format according to "HTML specification". It means that if you paste from buffer string
"hello\nword" and press "Encode", your browser will convert it to "hello\r\nword" and only after this your browser send FORM to us. As a result we will show you hash of "hello\r\nword" but not "hello\nword"

You can avoid this with encode string to "base64" on your side and use "Chains of algorithms" that described above.

Example 1: Hash from string with only Line Feed (LF) character Text: hello\nworld
Text encoded to BASE64: aGVsbG8Kd29ybGQ=
URL: https://md5calc.com/hash/b64d--md5.plain/aGVsbG8Kd29ybGQ=
RESULT: 9195d0beb2a889e1be05ed6bb1954837

Example 2: Hash from string with Carriage Return (CR) and Line Feed (LF) character. This result you will have if you use editor with CR, LF or CRLF symbols.
Text: hello\r\nworld
Text encoded to BASE64: aGVsbG8NCndvcmxk
URL: https://md5calc.com/hash/b64d--md5.plain/aGVsbG8NCndvcmxk
RESULT: 6a4316b18e6162cf9fcfa435c8eb74c1

How to calculate md2 hash in PHP with hash function

Since version 5.1.2 PHP contains function hash() that you can use to get md2 hash from strings.

<?php
    $str = '¡Hola!';
    $hash = hash('md2', $str, false);
    echo '<pre>';
    echo $str.PHP_EOL
         .' &rarr; '.$hash.PHP_EOL
    ;
    echo '</pre>';
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy