Hi. I'm trying to create a login script using mcrypt_cbc. My mcrypt script works -- I can encrypt and decrypt successfully using an initialization vector (VI). But I need some suggestions on how the login script would incorporate this with a mysql database.
Would I store the key as the username, the encrypted password, and the initialization vector (VI) in the database? Please give me some suggestions on how I would store the username and password and subsequently authenticate the user.
Thanks so much.