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:
For example to visit page that contains hash of "hello world" you can just visit url:
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:
Will output only:
You can use direct access to hash in your applications.
$str = 'hello world';
$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.
Since version 5.1.2 PHP contains function hash() that you can use to get sha512 hash from strings.
<?php $str = '¡Hola!'; $hash = hash('sha512', $str, false); echo '<pre>'; echo $str.PHP_EOL .' → '.$hash.PHP_EOL ; echo '</pre>';