Hash Generator – MD5, MD4, SHA-1, SHA-256, SHA-384, SHA-512, and more
I’ve created a script that will hash a given string with 38 different algorithms. The algorithms are listed below.
Demo: http://www.randomtools.net/scripts/hash.php
HTML Form:
1 2 3 | <form method="post" action=""> <p>Key to hash: <input type="text" name="key" /> <button type="submit">Submit</button></p> </form> |
PHP Source Code:
1 2 3 4 5 6 7 8 9 10 11 12 | <?php if (isset($_POST['key'])) { $key = $_POST['key']; echo '<hr /><ul>'; foreach (hash_algos() as $algo) { echo '<li><strong>', $algo, ':</strong> <input type="text" value="', hash($algo, $key), '" onclick="this.select();" /></li>'; } echo '</ul>'; } else { echo '<p><strong>This will generate hash codes for the following algorithms:</strong> ', implode(', ', hash_algos()), '</p>'; } ?> |
Included hash types:
|
|
|
I enjoyed reading the Hash Generator – MD5, MD4, SHA-1, SHA-256, SHA-384, SHA-512, and more post, although I did not think it was entirely the best approach … there are alternatives which would provide more positive results ..
Thanks for your comment. What approach would you recommend?
The first comment is simply working for pagerank, I’d think
Hi there,
I have been after a source like this for a long time for my hash cracking website http://www.hashhack.com. This is exactly what i was after – thanks !
HashHack.com – The Online MD5 Cracker