You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ SecurePassword is a PHP component for creating strong passwords using modern enc
4
4
5
5
## Why use this component?
6
6
7
-
Unlike just using `password_hash`, SecurePassword adds a secret entry (commonly called a pepper) to make it difficult to break the generated hash.
7
+
Unlike just using `password_hash` or `password_verify`, SecurePassword adds a secret entry (commonly called a pepper) to make it difficult to break the generated hash.
8
8
9
9
## Requirements
10
10
@@ -35,11 +35,11 @@ var_dump($hash);
35
35
You can change encryption settings without using the methods that will be listed below. To do this, enter the following code in the constructor:
If the encryption type has been changed, you can generate a new hash with the new encryption. The `needsHash()` method checks whether the reported hash needs to be regenerated. Otherwise, it will return `false`.
Add options in the `useDefault`, `useBcrypt` and `useArgon2` methods.
168
167
169
168
- useDefault: default options, use an array.
170
-
- useBcrypt: you can change `$cost`. The default is `10`.
169
+
- useBcrypt: you can change `$cost`. The default is `12`.
171
170
- useArgon2: you can change `$memory_cost`, `$time_cost` and `$threads`. The default is the constants `PASSWORD_ARGON2_DEFAULT_MEMORY_COST`, `PASSWORD_ARGON2_DEFAULT_TIME_COST` and `PASSWORD_ARGON2_DEFAULT_THREADS`.
0 commit comments