We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

Sn0opy on 05/27/08


Tagged

password encrypt


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

blackabee
Sn0opy
Tamedo


Password encryption


Published in: PHP 


Password will be returned as md5

  1. function decryptpass($password) {
  2. if(!empty($password)) {
  3. $key = 'KütNcFw<v5&4@pR+n<JT*;Hb6?WkZVsY1ä9/(6QH'.
  4. '7]B=)4{ö_>sSqUu+oKmOZ,+/(&eE5/ZSLNj5v&V}'.
  5. '(3&z_<36L&wÜ,Nj>@e([GWgV*-c1C(u6H64DQ*ZÄ'.
  6. 'w4YDKJ6k)br8/;&i8Jq/l*(%eüfsKwmGrgrdteJ%'.
  7. 'bwGwHV>&r(Ö4n%M1y83m3v:P{]R&J0#-9rg_&x_N'.
  8. 'PY5#Pw&4MCG54=J()mpüZd];ÄfmsFmD5vb3iä4Se'.
  9. 'Ö]e%jsi(7,{z*%jGPmbyjL%!!Ä2C#&(40(K#?4e1'.
  10. 'BcayYI7ü%$Av<äJ5Aä@V(GMX$8+>OUn);?Ap4Cf2';
  11.  
  12. $hash1 = sha1(md5($key));
  13. $hash2 = sha1(md5($password));
  14. $password = md5(sha1($hash1 . $hash2));
  15.  
  16. return $password;
  17. }
  18. }

Report this snippet 

You need to login to post a comment.