Le password devono essere archiviate in modo sicuro — mai in plaintext, ma sottoposte a hash con un algoritmo di hashing password forte, lento e salato (bcrypt, Argon2, scrypt). La corretta gestione delle password è critica perché le violazioni di password sono estremamente dannose e comuni.
Non archiviare mai plaintext; eseguire correttamente l'hash
❌ NEVER store passwords in plaintext (a breach exposes all passwords directly)
❌ Don't use fast/general hashes (MD5, SHA-256) alone — too fast → easily brute-forced
✅ HASH with a dedicated PASSWORD HASHING algorithm: BCRYPT, ARGON2, or scrypt:
→ SLOW by design (resistant to brute-force/GPU cracking)
→ SALTED (a unique random salt per password) → prevents rainbow-table attacks and
identical passwords hashing the same
