From c868b05232f067143a7b700680e1275bf52234ea Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 25 Dec 2019 16:28:24 +0800 Subject: [PATCH] New password algorithm: Argon2i --- .env.example | 2 +- app/Services/Cipher/ARGON2I.php | 16 ++++++++++++++++ resources/misc/changelogs/en/5.0.0.md | 1 + resources/misc/changelogs/zh_CN/5.0.0.md | 1 + 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 app/Services/Cipher/ARGON2I.php diff --git a/.env.example b/.env.example index 009cc76f..490bfe87 100644 --- a/.env.example +++ b/.env.example @@ -15,7 +15,7 @@ DB_PREFIX= # Hash Algorithm for Passwords # # Available values: -# - BCRYPT, PHP_PASSWORD_HASH +# - BCRYPT, ARGON2I, PHP_PASSWORD_HASH # - MD5, SALTED2MD5 # - SHA256, SALTED2SHA256 # - SHA512, SALTED2SHA512 diff --git a/app/Services/Cipher/ARGON2I.php b/app/Services/Cipher/ARGON2I.php new file mode 100644 index 00000000..8ed91947 --- /dev/null +++ b/app/Services/Cipher/ARGON2I.php @@ -0,0 +1,16 @@ +