more oops. still not 100% sure on the php one.
This commit is contained in:
7
extra/bin/hashgen.php
Normal file
7
extra/bin/hashgen.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$password = readline("Password: ");
|
||||
$saltRaw = random_bytes(8);
|
||||
$salt = base64_encode($saltRaw);
|
||||
$result = crypt($password,'$6' . '$' . $salt .'$');
|
||||
print $result . "\n";
|
||||
?>
|
||||
Reference in New Issue
Block a user