mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
http auth api feature
This commit is contained in:
parent
45426d53fc
commit
99e73ded9c
6 changed files with 282 additions and 2 deletions
|
@ -32,5 +32,10 @@ if ($crypt == 'sha-512' ) {
|
|||
$hash = str_replace('$rounds=5000','',$hash);
|
||||
}
|
||||
|
||||
// Generating base64 hash
|
||||
if ($crypt == 'htpasswd' ) {
|
||||
$hash = crypt($password, base64_encode($password));
|
||||
}
|
||||
|
||||
// Printing result
|
||||
echo $hash . "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue