md5 decryption
-
Hai, Am using md5 with salt.Am able to encrypt password,but how to decrypt the password while 'change password' case. Login page is working good but changepassword is not. give me idea to how to use md5 or something else for decryption. The way am using md5 with salt in login page txt6.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(password.ToString().Trim(), "md5") txt7.Text = FormsAuthentication.HashPasswordForStoringInConfigFile((salt) + txt6.Text.Trim.ToLower()), "md5") if txt_password.text=txt6.text then //mycode else //error end if txt_password.text become encrypted at clien side. Please if ur free let me know the solution thanks in advance
kissy
-
Hai, Am using md5 with salt.Am able to encrypt password,but how to decrypt the password while 'change password' case. Login page is working good but changepassword is not. give me idea to how to use md5 or something else for decryption. The way am using md5 with salt in login page txt6.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(password.ToString().Trim(), "md5") txt7.Text = FormsAuthentication.HashPasswordForStoringInConfigFile((salt) + txt6.Text.Trim.ToLower()), "md5") if txt_password.text=txt6.text then //mycode else //error end if txt_password.text become encrypted at clien side. Please if ur free let me know the solution thanks in advance
kissy
MD5 is called a one-way hash, one-way is not two-way.... During the password change, why don't you encrypt the typed password and compare it with the stored one. This is the way, i have implemented..... :)
Regards Aman Bhullar www.arlivesupport.com[^]
-
Hai, Am using md5 with salt.Am able to encrypt password,but how to decrypt the password while 'change password' case. Login page is working good but changepassword is not. give me idea to how to use md5 or something else for decryption. The way am using md5 with salt in login page txt6.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(password.ToString().Trim(), "md5") txt7.Text = FormsAuthentication.HashPasswordForStoringInConfigFile((salt) + txt6.Text.Trim.ToLower()), "md5") if txt_password.text=txt6.text then //mycode else //error end if txt_password.text become encrypted at clien side. Please if ur free let me know the solution thanks in advance
kissy
You cannot decrypt when using MD5 because it is one way encryption. Instead use some encryption/Decryption technique.
himanshu
-
MD5 is called a one-way hash, one-way is not two-way.... During the password change, why don't you encrypt the typed password and compare it with the stored one. This is the way, i have implemented..... :)
Regards Aman Bhullar www.arlivesupport.com[^]
thanks for ur response. I know that md5 is one way hash. Actually am storing passwords in plain text only in the database,because at one glance one cant say the actual password from the database(again he has to decrypt the whole thing using symmetric key logic which i dont want to use).and am using md5 with salt which doesnt show the plain text to the end user. But in the changed password,the new password am encrypting with md5 but problem occuring while updating the data. which is the best way to do while password change?please send me some code snippet,so that i may get some idea. The above code i have send is working perfectly while login.which i have to use.
kissy
-
Hai, Am using md5 with salt.Am able to encrypt password,but how to decrypt the password while 'change password' case. Login page is working good but changepassword is not. give me idea to how to use md5 or something else for decryption. The way am using md5 with salt in login page txt6.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(password.ToString().Trim(), "md5") txt7.Text = FormsAuthentication.HashPasswordForStoringInConfigFile((salt) + txt6.Text.Trim.ToLower()), "md5") if txt_password.text=txt6.text then //mycode else //error end if txt_password.text become encrypted at clien side. Please if ur free let me know the solution thanks in advance
kissy
MD5 is a hash algorithm which does not support decryption. It is one-way.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!