Handle DES passwords

This commit is contained in:
Hervé BRY 2016-04-22 16:30:27 +02:00
commit ea22b393ca
2 changed files with 23 additions and 7 deletions

View file

@ -37,5 +37,10 @@ if ($crypt == 'htpasswd' ) {
$hash = crypt($password, base64_encode($password));
}
// Generating DES hash
if ($crypt == 'des' ) {
$hash = crypt($password, $salt);
}
// Printing result
echo $hash . "\n";