com php-src: Increase default time cost for argon2 password hashing: NEWS ext/standard/php_password.h
| From: | Sara Golemon | Date: | Wed, 27 Mar 2019 04:36:19 +0000 |
| Subject: | com php-src: Increase default time cost for argon2 password hashing: NEWS ext/standard/php_password.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105357@lists.php.net to get a copy of this message | ||
Commit: d12464070460086329e93f632aed2f16daa52600
Author: Sara Golemon <pollita@php.net> Wed, 27 Mar 2019 00:07:55 -0400
Parents: f177a2ac586124374e13b93da0c0b9e0e4980ff6
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d12464070460086329e93f632aed2f16daa52600
Log:
Increase default time cost for argon2 password hashing
Changed paths:
M NEWS
M ext/standard/php_password.h
Diff:
diff --git a/NEWS b/NEWS
index 24e9ec2..225c9b6 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ PHP NEWS
(Ryan McCullagh, Nikita)
. Fixed bug #75921 (Inconsistent: No warning in some cases when stdObj is
created on the fly). (David Walker)
+ . Increased default time_cost for argon2i(d) password_hash to 3. (Sara)
- COM:
. Deprecated registering of case-insensitive constants from typelibs. (cmb)
diff --git a/ext/standard/php_password.h b/ext/standard/php_password.h
index ecb3478..46ed4f0 100644
--- a/ext/standard/php_password.h
+++ b/ext/standard/php_password.h
@@ -34,7 +34,7 @@ PHP_MSHUTDOWN_FUNCTION(password);
#if HAVE_ARGON2LIB
#define PHP_PASSWORD_ARGON2_MEMORY_COST 1<<10
-#define PHP_PASSWORD_ARGON2_TIME_COST 2
+#define PHP_PASSWORD_ARGON2_TIME_COST 3
#define PHP_PASSWORD_ARGON2_THREADS 2
#endif