Posted By

Sn0opy on 05/27/08


Tagged

password encrypt


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

blackabee
Sn0opy
Tamedo
jprice


Password encryption


 / Published in: PHP
 

Password will be returned as md5

  1. function encryptpass($password) {
  2. if(!empty($password)) {
  3. $key = 'oYenhuobE577FzAixKPe9qQkptHbFx'.
  4. 'uoC0PcdPfNuQGnELzvI3FGVWl27k3v'.
  5. 'mqoymbRV09QWwdmq6c7AWysFP43LtM'.
  6. 'x8MDriq73T2PVJBGiyxQUxe4viLiHQ'.
  7. 'In4buglQcq3024DCw9sVFO0mFVe6Jq'.
  8. 'cPUuCjzYWyfgaSe97H6DBLIvAY9qbN'.
  9. 'xozZtZ0Id9Coy7daJDfx4w8BsyfFNr';
  10.  
  11. $hash1 = sha1(md5($key));
  12. $hash2 = sha1(md5($password));
  13. $password = md5(sha1($hash1 . $hash2));
  14.  
  15. return $password;
  16. }
  17. }

Report this snippet  

You need to login to post a comment.