Created
June 10, 2012 23:21
-
-
Save MikeRogers0/2907660 to your computer and use it in GitHub Desktop.
Securing Passwords in PHP
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 | |
$salt = '%$£Salt_Here*(&^'; | |
$password = md5('password'.$salt); | |
// $password will now return 5747563a265df7a3250884394c0a05e0 | |
?> |
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 | |
$password = md5('password'); | |
// $password will now return 5f4dcc3b5aa765d61d8327deb882cf99 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment