Hacker News new | ask | show | jobs
Different password encryption implementations (github.com)
2 points by ziad-saab 3952 days ago
1 comments

One of my favourite ones:

  public static function encryptPassword($password) {
    return strrev(sha1(strtolower($password)).sha1(strtoupper($password)));
  }