@@ -15,17 +15,17 @@ More details are available in the next section.
15
15
16
16
Passing passwords to database in plaintext for insert or verification is
17
17
generally not recommended.
18
- Sql statements can and usually are logged by the database, passwords in them
18
+ Sql statements can and usually are logged by the database, and passwords in them
19
19
become visible to anyone with access to the logs or monitoring tools that
20
20
consume those logs.
21
21
22
- Safer way is to hash passwords and verify them against stored hash on the
23
- application side . This way password never needs to leave application and only
24
- hashed value exchanged with database.
22
+ The safer approach is to hash passwords, and to verify them against a stored
23
+ hash in your application code . This way the password never leaves the
24
+ application, and only the hashed value is exchanged with the database.
25
25
26
- As such, this adapter is not recommended for new applications and existing
27
- applications should consider migrating to using PHP provided password handling
28
- functions ` password_hash() ` and ` password_verify() ` . See
26
+ As such, this adapter is not recommended for new applications, and existing
27
+ applications should consider migrating to using PHP- provided password handling
28
+ functions such as ` password_hash() ` and ` password_verify() ` . See
29
29
[ CallbackCheckAdapter] ( callback-check.md ) for more info.
30
30
31
31
## Configuration Options
@@ -261,8 +261,8 @@ $sqlAlter = "ALTER TABLE [users] "
261
261
```
262
262
263
263
Salts should be created * for each user* using a cryptographically sound pseudo-random number generator (CSPRNG).
264
- PHP 7 provides an implementation via ` random_bytes ` (and
265
- [ ` random_compat ` for older supported versions of PHP] ( https://github.com/paragonie/random_compat ) ):
264
+ PHP 7 provides an implementation via ` random_bytes() ` (and
265
+ the [ random_compat package provides them for older, supported versions of PHP] ( https://github.com/paragonie/random_compat ) ):
266
266
267
267
``` php
268
268
$salt = random_bytes(32);
0 commit comments