forked from leftypol/leftypol
hash poster passwords
This commit is contained in:
parent
c7bb61f2ff
commit
8b2f002582
6 changed files with 33 additions and 5 deletions
|
@ -200,6 +200,9 @@
|
|||
// Used to salt secure tripcodes ("##trip") and poster IDs (if enabled).
|
||||
$config['secure_trip_salt'] = ')(*&^%$#@!98765432190zyxwvutsrqponmlkjihgfedcba';
|
||||
|
||||
// Used to salt poster passwords.
|
||||
$config['secure_password_salt'] = 'wKJSb7M5SyzMcFWD2gPO3j2RYUSO9B789!@#$%^&*()';
|
||||
|
||||
/*
|
||||
* ====================
|
||||
* Flood/spam settings
|
||||
|
|
|
@ -3082,3 +3082,8 @@ function strategy_first($fun, $array) {
|
|||
return array('defer');
|
||||
}
|
||||
}
|
||||
|
||||
function hashPassword($password) {
|
||||
global $config;
|
||||
return hash('sha3-256', $password . $config['secure_password_salt']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue