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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjay KumarPosted Oct 19, 2013, 5:31 AM
Sanjay KumarPosted Oct 19, 2013, 5:25 AM
upassword = Encrypt(txtpassword.Text.ToString());
cmd.Parameters.AddWithValue("@Password", upassword);
Jaganathan BantheswaranPosted Oct 19, 2013, 4:38 AM
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