Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2012
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. function encrypt($string) {
  2. $salt = getGlobalSalt();
  3. $enc_pass = sha1($salt.$string);
  4. return $enc_pass;
  5. }
  6.  
  7. function getGlobalSalt() {
  8. return "my_salt_goes_here";
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement