Storing answer to security question

RBX

In the zone
Joined
May 26, 2008
Messages
405
I use salted hashing on passwords and store salt in plaintext, but am doubtful on what to do with security answers, is there an accepted practice ?

I have a general idea regarding this, that includes converting multiple spaces to single, trimming leading and trailing spaces, converting to lowercase, adding nonce, and hashing. I'd be grateful on some input on this, with perhaps some references telling if such scheme is actually employed.
 

Mario

Ambassador of Buzz
Joined
Dec 7, 2010
Messages
552
Don't know about "accepted practice", but a one-way hash on both the security question and the answer would be one way of doing it (although it might be a little too strict, depending on where this is implemented).
 
Top