insideout Get Pro

04 · Storing passwords and secrets

Pro

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
  1. What a leaked table costs an attacker
  2. Settings that make each guess slow
  3. Secrets out of code

Cybersecurity comes with Pro: every lesson in every module.

Cryptography overviewSpotted a mistake? Tell us.