Created
July 22, 2014 19:44
-
-
Save smullins7/da8a538ccda685494f12 to your computer and use it in GitHub Desktop.
php sha512 hash command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| echo "Enter your password:\n"; | |
| $handle = fopen ("php://stdin","r"); | |
| $line = fgets($handle); | |
| echo "HashedPassword:\n" . hash("sha512", trim($line)) . "\n"; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment