--- Auth.php 2014-02-10 14:46:24.868000000 +0100 +++ Auth.php.new 2014-02-10 14:47:49.112000000 +0100 @@ -146,6 +146,13 @@ $encrypted = base64_encode(pack('H*', hash('md5', $plaintext . $salt)) . $salt); return $show_encrypt ? '{SMD5}' . $encrypted : $encrypted; + case 'mysql': + // MySQL password hash + $encrypted = sha1($plaintext, true); + $encrypted = sha1($encrypted, false); + $encrypted = '*'.strtoupper($encrypted); + return $show_encrypt ? '{MYSQL}' . $encrypted : $encrypted; + case 'aprmd5': $length = strlen($plaintext); $context = $plaintext . '$apr1$' . $salt;