SHA1 and MD5 cryptography
how to to both client side and server side encryption of password and then to compare that password with the password which is present in database ? please give some suggestions to create secured log in page.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 19, 2013, 12:38 AM EDT
It is always better to NOT store the password anywhere. Instead, you should store passwords' hash value.
So, when the user submits the password for a very first time. you can create its hash using Javascript algorithm and pass it to the server & store it.
Next time, when the user is logged in, again hash the password & send it only the hash, and then in the server, compare the hash which is sent from client with the hash which is stored in DB/somewhere.
For Javascript algor.. http://www.webtoolkit.info/javascript-sha256.html
Sanjay KumarRank #561 · 4.3K reputationPosted Oct 19, 2013, 1:25 AM EDT
upassword = Encrypt(txtpassword.Text.ToString());
cmd.Parameters.AddWithValue("@Password", upassword);
Sanjay KumarRank #561 · 4.3K reputationPosted Oct 19, 2013, 1:31 AM EDT