Skip to content

Commit

Permalink
scrypt: adopt OWASP recommendations (#388)
Browse files Browse the repository at this point in the history
Adopts the recommended settings from:

https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html

> use scrypt with a minimum CPU/memory cost parameter of (2^17),
> a minimum block size of 8 (1024 bytes), and a parallelization
> parameter of 1.
  • Loading branch information
tarcieri committed Mar 5, 2023
1 parent 4292ae3 commit 093cd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrypt/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct Params {

impl Params {
/// Recommended log₂ of the Scrypt parameter `N`: CPU/memory cost.
pub const RECOMMENDED_LOG_N: u8 = 15;
pub const RECOMMENDED_LOG_N: u8 = 17;

/// Recommended Scrypt parameter `r`: block size.
pub const RECOMMENDED_R: u32 = 8;
Expand Down

0 comments on commit 093cd25

Please sign in to comment.