mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Handle DES passwords
This commit is contained in:
parent
5e861eb78f
commit
ea22b393ca
2 changed files with 23 additions and 7 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue