Skip to content

Commit ed4d013

Browse files
willclarktechMylesBorins
authored andcommitted
doc: correct pbkdf2 salt length recommendation
According to the linked document: "The length of the randomly-generated portion of the salt shall be at least 128 bits." [NIST SP 800-132] PR-URL: #17524 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6ba00b8 commit ed4d013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ higher the number of iterations, the more secure the derived key will be,
16121612
but will take a longer amount of time to complete.
16131613

16141614
The `salt` should also be as unique as possible. It is recommended that the
1615-
salts are random and their lengths are greater than 16 bytes. See
1615+
salts are random and their lengths are at least 16 bytes. See
16161616
[NIST SP 800-132][] for details.
16171617

16181618
Example:
@@ -1676,7 +1676,7 @@ higher the number of iterations, the more secure the derived key will be,
16761676
but will take a longer amount of time to complete.
16771677

16781678
The `salt` should also be as unique as possible. It is recommended that the
1679-
salts are random and their lengths are greater than 16 bytes. See
1679+
salts are random and their lengths are at least 16 bytes. See
16801680
[NIST SP 800-132][] for details.
16811681

16821682
Example:

0 commit comments

Comments
 (0)