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. Hash Password in Windows Application

Hash Password in Windows Application

Scheduled Pinned Locked Moved ASP.NET
databasecryptographyquestion
7 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
    Kartik Rathi
    wrote on last edited by
    #1

    How can i generate a hash Password and checks from database in Windows Application. Like in Web Application we do sHashPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPwd.Text & ds.Tables(0).Rows(0)("pwdSalt"), "MD5") If sHashPwd.Trim.CompareTo(ds.Tables(0).Rows(0)("password").Trim()) <> 0 Then lblMessage.Text = "Login failed please enter a valid password." How can we do above procedure in Windows Application Kartik

    V J M 3 Replies Last reply
    0
    • K Kartik Rathi

      How can i generate a hash Password and checks from database in Windows Application. Like in Web Application we do sHashPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPwd.Text & ds.Tables(0).Rows(0)("pwdSalt"), "MD5") If sHashPwd.Trim.CompareTo(ds.Tables(0).Rows(0)("password").Trim()) <> 0 Then lblMessage.Text = "Login failed please enter a valid password." How can we do above procedure in Windows Application Kartik

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

      You can actually use the XCrypt library from http://www.codeproject.com/csharp/xcrypt.asp[^]

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      K 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        You can actually use the XCrypt library from http://www.codeproject.com/csharp/xcrypt.asp[^]

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        K Offline
        K Offline
        Kartik Rathi
        wrote on last edited by
        #3

        I don't need third Part Tool.I want code.

        V J 2 Replies Last reply
        0
        • K Kartik Rathi

          I don't need third Part Tool.I want code.

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

          It is an open source library. You can actually check out the Hash implementation based on System.Security.Cryptography over there.

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          1 Reply Last reply
          0
          • K Kartik Rathi

            I don't need third Part Tool.I want code.

            J Offline
            J Offline
            John ph
            wrote on last edited by
            #5

            http://www.devarticles.com/c/a/VB.Net/String-Encryption-With-Visual-Basic-.NET/3/[^]


            Regards
            John


            1 Reply Last reply
            0
            • K Kartik Rathi

              How can i generate a hash Password and checks from database in Windows Application. Like in Web Application we do sHashPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPwd.Text & ds.Tables(0).Rows(0)("pwdSalt"), "MD5") If sHashPwd.Trim.CompareTo(ds.Tables(0).Rows(0)("password").Trim()) <> 0 Then lblMessage.Text = "Login failed please enter a valid password." How can we do above procedure in Windows Application Kartik

              J Offline
              J Offline
              John ph
              wrote on last edited by
              #6

              you have to write a password encryption and decryption routines. the related methods and properties are in the namespace System.Security.Cryptography


              Regards
              John


              1 Reply Last reply
              0
              • K Kartik Rathi

                How can i generate a hash Password and checks from database in Windows Application. Like in Web Application we do sHashPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPwd.Text & ds.Tables(0).Rows(0)("pwdSalt"), "MD5") If sHashPwd.Trim.CompareTo(ds.Tables(0).Rows(0)("password").Trim()) <> 0 Then lblMessage.Text = "Login failed please enter a valid password." How can we do above procedure in Windows Application Kartik

                M Offline
                M Offline
                mangrovecm
                wrote on last edited by
                #7

                Hi, This link is the best solution with you. http://www.codeproject.com/useritems/Crypto.asp Hope that help you kiet vu (-,-)am from VietNamese. Thank you for your voting

                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