removed security.php, since there is no need to do custom password hashing

This commit is contained in:
hayden 2019-06-30 00:25:13 -05:00
parent c711c58d18
commit 240bdf1973
1 changed files with 0 additions and 10 deletions

View File

@ -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);
}
?>