PBKDF2

A standard way to turn a password into an encryption key, or a stored password hash, by hashing it many thousands of times so guessing is slow.

In more detail

crypto.pbkdf2() runs on the libuv thread pool, while pbkdf2Sync() blocks the main thread until it finishes. Its deliberate slowness makes it a good example of CPU-bound work in the lessons.

Examples

hashlib.pbkdf2_hmac('sha256', password, salt, 600_000)
OWASP suggests 600,000 iterations when using PBKDF2 with HMAC-SHA-256

Related terms

Taught in

References

Certification courses