รหัสผ่านต้องถูกจัดเก็บอย่างปลอดภัย โดย ห้ามเก็บเป็น plaintext เด็ดขาด แต่ต้อง hash ด้วยอัลกอริทึม password hashing ที่แข็งแรง ช้า และมี salt (bcrypt, Argon2, scrypt) การจัดการรหัสผ่านอย่างเหมาะสมเป็นเรื่องสำคัญยิ่ง เพราะการละเมิดรหัสผ่านสร้างความเสียหายมหาศาลและพบบ่อย
ห้ามเก็บเป็น plaintext; ทำการ 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
