diff options
| author | czaks <marcin@6irc.net> | 2016-05-05 06:45:08 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 06:45:08 +0200 |
| commit | c898f9749367b4ce9eea06ec9dc178baa7752d04 (patch) | |
| tree | 8eb21f57b88e36c481da8f8a74c32ec52ce4f4ab /inc/config.php | |
| parent | c53f13bf90716461780fef0a2b4b6e2b5b3cb002 (diff) | |
| parent | 7c3126866cd291d515ab5cc83d4635c3c95c6d85 (diff) | |
Merge branch 'master' of https://github.com/vichan-devel/vichan
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; |
