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. General Programming
  3. C#
  4. how to use MD5 technics

how to use MD5 technics

Scheduled Pinned Locked Moved C#
tutorialhelp
3 Posts 3 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.
  • N Offline
    N Offline
    narendrakumarp
    wrote on last edited by
    #1

    Hi I need to use MD5 technics for encripting & decripting the password. So if any body knows about that, plz give me an idea to use the MD5 technics. Just give me some example that to know the process. Thanking u Regards, Naren.

    please help me

    S R 2 Replies Last reply
    0
    • N narendrakumarp

      Hi I need to use MD5 technics for encripting & decripting the password. So if any body knows about that, plz give me an idea to use the MD5 technics. Just give me some example that to know the process. Thanking u Regards, Naren.

      please help me

      S Offline
      S Offline
      SharpenedC
      wrote on last edited by
      #2

      MD5 in itself can't be 'decrypted'. MD5 is a hash. It is commonly used to store passwords in the following manner: Step 1) The user signs up and enters his/her password, where it is MD5ed and stored locally. Step 2) The user logs on with a password, which is MD5ed and compared with the local hash. I'm sure you can find an article on MD5 on google or here on codeproject. :)

      1 Reply Last reply
      0
      • N narendrakumarp

        Hi I need to use MD5 technics for encripting & decripting the password. So if any body knows about that, plz give me an idea to use the MD5 technics. Just give me some example that to know the process. Thanking u Regards, Naren.

        please help me

        R Offline
        R Offline
        Rob Philpott
        wrote on last edited by
        #3

        MD5 hashing is one way, so you can't 'decrypt' it as such. You'd usually use it to store passwords in a file or database so they're not readable by anyone with access to the database. When someone comes to log-in, you hash the password again and compare the hashed passwords to see if they're entered the correct one. .NET has a built in function for this:

        string hashedPassword = FormsAuthentication.HashPasswordForStoringInConfigFile("Password to Hash", "MD5");

        http://msdn2.microsoft.com/en-us/library/system.web.security.formsauthentication.hashpasswordforstoringinconfigfile.aspx[^]

        Regards, Rob Philpott.

        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