more oops. still not 100% sure on the php one.

This commit is contained in:
2016-11-27 12:23:11 -05:00
parent 6f53d09b04
commit 0102ca26c3
2 changed files with 9 additions and 2 deletions

7
extra/bin/hashgen.php Normal file
View 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";
?>