http://qs321.pair.com?node_id=1223043


in reply to Re^2: with CGI, How to have multiple usernames and passwords from a txt file (password.txt) file
in thread with CGI, How to have multiple usernames and passwords from a txt file (password.txt) file

"Then, I input USERNAME as username and PASSWORD as SamplePassword. But, It won't work. Why?"

Because you're comparing 'SamplePassword' against 'c0075ad4e26ec3dee225ccb6387b0b77', which isn't the same string.

"How can I do it? Pls help me to complete the code with security"

Grandfather explains that you have to do the same process with the user supplied password as you did you generate the password, compare the resulting value against the one you have stored.