removed security.php, since there is no need to do custom password hashing
This commit is contained in:
parent
c711c58d18
commit
240bdf1973
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
function hash_string($input, $rounds = 5) {
|
||||
$salt = "";
|
||||
$salt_chars = array_merge(range('A','Z'), range('a','z'), range(0,9));
|
||||
for($i=0; $i < 22; $i++) {
|
||||
$salt .= $salt_chars[array_rand($salt_chars)];
|
||||
}
|
||||
return crypt($input, sprintf('$2y$%02d$', $rounds) . $salt);
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue