@@ -32,6 +32,10 @@ PHP 7.2 UPGRADE NOTES
32
32
- PCRE:
33
33
. Added `J` modifier for setting PCRE_DUPNAMES.
34
34
35
+ - Standard:
36
+ . Simplified password hashing API updated to support Argon2i hashes when PHP is compiled with libargon2
37
+ (https://wiki.php.net/rfc/argon2_password_hash).
38
+
35
39
========================================
36
40
3. Changes in SAPI modules
37
41
========================================
@@ -44,6 +48,14 @@ PHP 7.2 UPGRADE NOTES
44
48
5. Changed Functions
45
49
========================================
46
50
51
+ - Standard:
52
+ . password_hash() can generate Argon2i hashes when the algorithm is set to PASSWORD_ARGON2I.
53
+ When using PASSWORD_ARGON2I, the following cost factors may be set: 'memory_cost', 'time_cost',
54
+ and 'threads'. These cost factors will default to 'PASSWORD_ARGON2_DEFAULT_MEMORY_COST',
55
+ 'PASSWORD_ARGON2_DEFAULT_TIME_COST', and 'PASSWORD_ARGON2_DEFAULT_THREADS' respectively if not set.
56
+ . password_verify() can verify Argon2i hashes.
57
+ . password_get_info() and password_needs_rehash() can accept Argon2i hashes.
58
+
47
59
========================================
48
60
6. New Functions
49
61
========================================
@@ -82,6 +94,12 @@ PHP 7.2 UPGRADE NOTES
82
94
10. New Global Constants
83
95
========================================
84
96
97
+ - Standard:
98
+ . PASSWORD_ARGON2_DEFAULT_MEMORY_COST
99
+ . PASSWORD_ARGON2_DEFAULT_TIME_COST
100
+ . PASSWORD_ARGON2_DEFAULT_THREADS
101
+ . PASSWORD_ARGON2I
102
+
85
103
========================================
86
104
11. Changes to INI File Handling
87
105
========================================
0 commit comments