New password algorithm: Argon2i
This commit is contained in:
parent
cf8358fdcd
commit
c868b05232
@ -15,7 +15,7 @@ DB_PREFIX=
|
|||||||
# Hash Algorithm for Passwords
|
# Hash Algorithm for Passwords
|
||||||
#
|
#
|
||||||
# Available values:
|
# Available values:
|
||||||
# - BCRYPT, PHP_PASSWORD_HASH
|
# - BCRYPT, ARGON2I, PHP_PASSWORD_HASH
|
||||||
# - MD5, SALTED2MD5
|
# - MD5, SALTED2MD5
|
||||||
# - SHA256, SALTED2SHA256
|
# - SHA256, SALTED2SHA256
|
||||||
# - SHA512, SALTED2SHA512
|
# - SHA512, SALTED2SHA512
|
||||||
|
16
app/Services/Cipher/ARGON2I.php
Normal file
16
app/Services/Cipher/ARGON2I.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Services\Cipher;
|
||||||
|
|
||||||
|
class ARGON2I extends BaseCipher
|
||||||
|
{
|
||||||
|
public function hash($value, $salt = '')
|
||||||
|
{
|
||||||
|
return password_hash($value, PASSWORD_ARGON2I);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function verify($password, $hash, $salt = '')
|
||||||
|
{
|
||||||
|
return password_verify($password, $hash);
|
||||||
|
}
|
||||||
|
}
|
@ -17,6 +17,7 @@
|
|||||||
- Added FAQ link at error page.
|
- Added FAQ link at error page.
|
||||||
- Added login with 3rd-party services. (GitHub and Microsoft Live are supported currently.)
|
- Added login with 3rd-party services. (GitHub and Microsoft Live are supported currently.)
|
||||||
- Added support of character "§" for player name. (Under CJK mode.)
|
- Added support of character "§" for player name. (Under CJK mode.)
|
||||||
|
- New password hash algorithm: Argon2i.
|
||||||
|
|
||||||
## Tweaked
|
## Tweaked
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
- 在错误页面增加指向 FAQ 页面的链接
|
- 在错误页面增加指向 FAQ 页面的链接
|
||||||
- 第三方登录(目前仅支持 GitHub 和 Microsoft Live)
|
- 第三方登录(目前仅支持 GitHub 和 Microsoft Live)
|
||||||
- 角色名支持字符「§」(需开启「CJK」模式)
|
- 角色名支持字符「§」(需开启「CJK」模式)
|
||||||
|
- 新的密码哈希算法:Argon2i
|
||||||
|
|
||||||
## 调整
|
## 调整
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user