Am new to Perl CGI, using ActivePerl, SQLite DB, Apache server and Windows.
I have an entry form in which their are fields like Id, Name, Password and so
on. Whenever anybody makes a new entry then whatever they enter into password
field that should be encrypted and get stored in database.
The next time when that same user enters the password then it should be validated. Now
I suppose a decrypt function or code is required.
I found something called MD5 encryption. Please can anybody give
me more info about this and help me regarding how to write the code or any link
regarding this?
Call
make_crypto_hashwhen you initially set up the user, the parameter is his given passphrase. Store the function return value in the database.Call
match_passphrase_against_crypto_hashwhen someone logs in and you want to see whether the passphrase belongs to the user. The parameters are the crypto hash you retrieve from the database for the given user name, and the passphrase just given by the user. The return value is boolean.