Skip to content

Commit d124640

Browse files
committed
Increase default time cost for argon2 password hashing
1 parent f177a2a commit d124640

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ PHP NEWS
1111
(Ryan McCullagh, Nikita)
1212
. Fixed bug #75921 (Inconsistent: No warning in some cases when stdObj is
1313
created on the fly). (David Walker)
14+
. Increased default time_cost for argon2i(d) password_hash to 3. (Sara)
1415

1516
- COM:
1617
. Deprecated registering of case-insensitive constants from typelibs. (cmb)

ext/standard/php_password.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PHP_MSHUTDOWN_FUNCTION(password);
3434

3535
#if HAVE_ARGON2LIB
3636
#define PHP_PASSWORD_ARGON2_MEMORY_COST 1<<10
37-
#define PHP_PASSWORD_ARGON2_TIME_COST 2
37+
#define PHP_PASSWORD_ARGON2_TIME_COST 3
3838
#define PHP_PASSWORD_ARGON2_THREADS 2
3939
#endif
4040

0 commit comments

Comments
 (0)