Skip to main content

ITERATIONS

Constant ITERATIONS 

Source
pub const ITERATIONS: u32 = 100_000;
Expand description

Iterations for new digests: 100,000, the most Workers’ WebCrypto accepts.

OWASP recommends 600,000 for PBKDF2-HMAC-SHA256; the cap is the platform’s. Digests store their own count, so raising it later keeps old digests verifiable.

§Examples

assert_eq!(ocre::password::ITERATIONS, 100_000);