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"
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"
You can use direct access to hash in your applications.
PHP Example:
<?php
Will output:
$str = 'hello world';
$url ='https://md5calc.com/hash/md5.plain/'.urlencode($str);
$md5hash = file_get_contents($url);
echo 'Hash of "'.$str.'" is "'.$md5hash.'"';
Hash of "hello world" is "5eb63bbbe01eeed093cb22bb8f5acdc3"
Keep in mind that this example no make sense because PHP has builtin function hash() which do the same.