Skip to content

Commit 83fe79c

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 b3b2456 commit 83fe79c

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
@@ -1395,7 +1395,7 @@ higher the number of iterations, the more secure the derived key will be,
13951395
but will take a longer amount of time to complete.
13961396

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

14011401
Example:
@@ -1429,7 +1429,7 @@ higher the number of iterations, the more secure the derived key will be,
14291429
but will take a longer amount of time to complete.
14301430

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

14351435
Example:

0 commit comments

Comments
 (0)