Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. md5 decryption

md5 decryption

Scheduled Pinned Locked Moved ASP.NET
helptutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    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

    L H V 3 Replies Last reply
    0
    • K Kissy16

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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[^]

      K 1 Reply Last reply
      0
      • K Kissy16

        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

        H Offline
        H Offline
        himanshu2561
        wrote on last edited by
        #3

        You cannot decrypt when using MD5 because it is one way encryption. Instead use some encryption/Decryption technique.

        himanshu

        1 Reply Last reply
        0
        • L Lost User

          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[^]

          K Offline
          K Offline
          Kissy16
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • K Kissy16

            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

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            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!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups