SHA1 hash

SHA1 encoded string

ca51f72dd7d01a0b54c316af6a3f1d11dec072b6

Your last 10 encodings

AlgorithmStringHash
sha1Simple-way-to-get-sha1-hashca51f72dd7d01a0b54c316af6a3f1d11dec072b6

String "Simple-way-to-get-sha1-hash" encoded to other algorithms

Here you can view hashes for "Simple-way-to-get-sha1-hash" string encoded with other popular algorithms

MD2 dda1e0c5b2de7ebd7cbcc8b31ea7db5b
MD4 90dac9dca00d6292eefae0716728fe9e
MD5 dfef0f8b3181f6b28a28bbdf157f1153
SHA1 ca51f72dd7d01a0b54c316af6a3f1d11dec072b6
SHA224 85ca4e7da5c424daeedd0f70a4547856f93ee5bee32f1468bb6d86f2
SHA256 2fc47ca7de9cc8267370374c099d86dcd169e2c8f39c0c9e19baeeabf712c79a
SHA384 919752113ff7665c04b185219a956c50e645cbdf2c9bd8f4afe65abd18b5e2819b07cc6186739ecba7f05db62c9ea7ad
SHA512/224 d60c129a80c6d6d6b4b375e91435f2d0bfde561fec0b911863067eb5
SHA512/256 0b4b05246f2212f360c5bbb5ceb06cc94a28673c1aadf621c5890a5320bbffa0
SHA512 5bd14c8df437bc1ba88b8bd3156a101d703287c456a8df5cdb1ad46d7bbe72c173442f5927a9049115be618508b64fc8e4ddee187ef6e785d4484146ecced61d
SHA3-224 b496816a45fe8783639ba548ff6bea5410015cd57ebd9921bf3f0b6d
SHA3-256 4348bdce347a3f171e5ba222aa0ef14e2ee8e8da41d14413ec1c70ae15faf848
SHA3-384 c0f7fc75fa2fc6ac4be17866e5f60c046d5f7e7fced2112c7bb5b44dcce3a1954b667f94eec5f7b8f661f27392d2e6f0
SHA3-512 70bd6173ad69e187d2886ebaf1e8e64b23da544b2c4c78fa09f1554eff8f40389f67b7a6224c381cb6f4a7f5ca011ba8ad8b1acd0a5771e03960cf00a789b2c4
RIPEMD128 9d8fc2ecf82cb41819a6b9c46048d7ea
RIPEMD160 366da15000b0443da6c61f0a913c2676ee84d753
RIPEMD256 b6abc971fa898c640497b4fc9fe875788f4e88cfbff06b7a39f00bd7f3f5baa0
RIPEMD320 2687da957dcc9cdc7e978b44149b738a2d9a0f664049c4c405588f474875274dd17b777e82ea9854
WHIRLPOOL d4a0fcf02624e99cd7b3ee5602a546f0aff20d4547ad38b54ed06240cd55b9dd096ba98a30261f1b314928874e240ca4638b9ca845c21f3cb7ea5c5be5d524d7
TIGER128,3 21deff73afb3456c9dd7b7be7c996eef
TIGER160,3 21deff73afb3456c9dd7b7be7c996eef6c611f3e
TIGER192,3 21deff73afb3456c9dd7b7be7c996eef6c611f3e383cc623
TIGER128,4 c27a6626ea83f5cd4845cca1f00ff635
TIGER160,4 c27a6626ea83f5cd4845cca1f00ff635a1e63802
TIGER192,4 c27a6626ea83f5cd4845cca1f00ff635a1e6380211b3a111
SNEFRU 713b2b827ee4020a0eb7a32aad01d0fff8ced9a7c113ae6038d462edb150142b
SNEFRU256 713b2b827ee4020a0eb7a32aad01d0fff8ced9a7c113ae6038d462edb150142b
GOST a71107b49e7b6c9aea0b824be73c26ee3413f36485873307fb87ebc3aee52e2c
GOST-CRYPTO ba9017b2ec23a75a4acff47a06ca906d78ab1eea46b78602409f065662c71e09
ADLER32 8bb209d1
CRC32 38fd9302
CRC32B 6d74baf6
FNV132 8ae3f04d
FNV1A32 98dd1451
FNV164 ad3424cb350025ad
FNV1A64 d9e379f4e0353631
JOAAT 5e5409f2
HAVAL128,3 235b5a21765b65b52027a7a19960a87d
HAVAL160,3 d349a0c6017e740f58367e3b996c8ac84be812cb
HAVAL192,3 bd4b4649e8c78fad7368edea94edd5e4894b1e63bc830b4a
HAVAL224,3 6e461c33c1fbf0a11babaca4a124deb830a4943043ed4cd4c27f7762
HAVAL256,3 b0a18130ddfc02a9abfc2865831451c1bbcdcd4e9642d563dde0ac94d620b3b5
HAVAL128,4 446b3e8a96aa1d4c0b0fc9c1bdad101b
HAVAL160,4 9e4d763e1a2793882624776f19dff798a6f88eb5
HAVAL192,4 796877ee4bfe6262109f11817d095eefc531feedd149627b
HAVAL224,4 e15bf192a18d8e7fe255a82e5ee99d7299ccb9ffef1e0040bff6c8d7
HAVAL256,4 38c3fa6c5eb9e23f9b930e67e4f577712c1b46545f294cdd41fccc3509e9cc1c
HAVAL128,5 3d10f8c5143884fdae154c0ff98e3ffc
HAVAL160,5 eaf644b6ad33077f377a22d0e230a5b7d277ca01
HAVAL192,5 17330cb5760bc5860e4b70b4bd512db13f6c09bafa220fe3
HAVAL224,5 8aeaa2720ee0f09fa5d158feabeb2faab410bc3617cab187a09450d5
HAVAL256,5 a0b93c5860c615beff0779e70a485faeb32e08e64f1dfcb301d17c192edfc6ab

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 sha1 hash in PHP with hash function

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

<?php
    $str = '¡Hola!';
    $hash = hash('sha1', $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