Posted By

pickyj on 01/31/11


Tagged

php function encrypt Ultimate


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

o0110o
riacharda
nickian
virendrakryadav
summer_charlie
jirimelcak
White
Priestd09
Internet-Uzver


Ultimate encryption function


 / Published in: PHP
 

  1. // f(ucking) u(ncrackable) e(ncryption) function by BlackHatDBL (www.netforme.net)
  2. function fue($hash,$times) {
  3. // Execute the encryption(s) as many times as the user wants
  4. for($i=$times;$i>0;$i--) {
  5. // Encode with base64...
  6. $hash=base64_encode($hash);
  7. // and md5...
  8. $hash=md5($hash);
  9. // sha1...
  10. $hash=sha1($hash);
  11. // sha256... (one more)
  12. $hash=hash("sha256", $hash);
  13. // sha512
  14. $hash=hash("sha512", $hash);
  15.  
  16. }
  17. // Finaly, when done, return the value
  18. return $hash;
  19. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Dapsy on February 23, 2012

This is not encryption, this is hashing. An encrypted value can be reversed to its original value. A hash can not be reversed, as is the case in your function.

Posted By: rendom on January 3, 2013

Why not just bcrypt?

You need to login to post a comment.