How are Answers to Security Questions Stored?

Digital security standards from the Open Web Application Security Project (OWASP) advise that security question answers should never be stored in plaintext. Instead, sensitive authentication data must be protected through a combination of hashing, salting, and encryption to prevent unauthorized access. Hashing converts the answer into a fixed-length string that cannot be reversed. Adding a unique salt ensures that identical answers result in different hash outputs, which helps protect against precomputed table attacks. Encryption provides an additional layer of security by scrambling the data so that it can only be read by systems possessing the correct decryption keys. NIST guidelines further specify that these answers should be hashed using strong, slow algorithms, such as Argon2 or bcrypt, to effectively resist brute-force attacks.


Related FAQs