Cryptography, lesson 4
Storing passwords and secrets
Store passwords with a slow, salted hash, and keep secrets out of code.
"Using encryption correctly" protected data you must read back. Passwords need the opposite: a sign-in only compares, so nothing should ever read one back, and some copy of the table will one day leak. You'll work out what a million leaked hashes cost an attacker under three settings, choose settings that make every guess slow, and move a secret out of code.
Part of Pro
In this lesson
- What a leaked table costs an attacker
- Settings that make each guess slow
- Secrets out of code
Cybersecurity comes with Pro: every lesson in every module.
Cryptography overviewSpotted a mistake? Tell us.