more oops. still not 100% sure on the php one.
This commit is contained in:
1 parent
6f53d09b04
commit
0102ca26c3
2 files changed
+9
-2
No files matched your search
@@ -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