diff options
| author | czaks <marcin@6irc.net> | 2016-04-22 05:35:43 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-04-22 05:35:43 +0200 |
| commit | caaf741691c9d44a9a186d6ce924fecb04f4f347 (patch) | |
| tree | 9b7c250ea732353f8053191b7772b4f6f8dbc7c6 /inc/config.php | |
| parent | 028fd3df15b2e2edc96c5b84156b0b039ea16562 (diff) | |
[SECURITY] keep up with modern password hashing standards
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index d5bdbfe5..c0e967af 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1672,3 +1672,18 @@ '<a href="https://youtu.be/$2" target="_blank" class="file">'. '<img style="width:360px;height:270px;" src="//img.youtube.com/vi/$2/0.jpg" class="post-image"/>'. '</a></div>'; + + // Password hashing function + // + // $5$ <- SHA256 + // $6$ <- SHA512 + // + // 25000 rounds make for ~0.05s on my 2015 Core i3 computer. + // + // https://secure.php.net/manual/en/function.crypt.php + $config['password_crypt'] = '$6$rounds=25000$'; + + // Password hashing method version + // If set to 0, it won't upgrade hashes using old password encryption schema, only create new. + // You can set it to a higher value, to further migrate to other password hashing function. + $config['password_crypt_version'] = 1; |
