Skip to content

Instantly share code, notes, and snippets.

@MikeRogers0
Created June 10, 2012 23:21
Show Gist options
  • Save MikeRogers0/2907660 to your computer and use it in GitHub Desktop.
Save MikeRogers0/2907660 to your computer and use it in GitHub Desktop.
Securing Passwords in PHP
<?php
$salt = '%$£Salt_Here*(&^';
$password = md5('password'.$salt);
// $password will now return 5747563a265df7a3250884394c0a05e0
?>
<?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