Password encryption


/ Published in: PHP
Save to your folder(s)

Password will be returned as md5


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.