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. Asp.net

Asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasewpfwcf
4 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.
  • U Offline
    U Offline
    User 11301740
    wrote on last edited by
    #1

    Hello;

    I'm working on a simple login form in c# in asp.net. I'd like to bind a key to the password and then save it in encrypted form. When the user logs in, he should enter his key and password. The key will be bind to the password and then compared to the one stored on the database.

    Please help me with the binding process and encryption.
    Thanks.

    L E R 3 Replies Last reply
    0
    • U User 11301740

      Hello;

      I'm working on a simple login form in c# in asp.net. I'd like to bind a key to the password and then save it in encrypted form. When the user logs in, he should enter his key and password. The key will be bind to the password and then compared to the one stored on the database.

      Please help me with the binding process and encryption.
      Thanks.

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

      Do not use encryption for storing passwords, use proper hashing as described in Secure Password Authentication Explained Simply[^].

      1 Reply Last reply
      0
      • U User 11301740

        Hello;

        I'm working on a simple login form in c# in asp.net. I'd like to bind a key to the password and then save it in encrypted form. When the user logs in, he should enter his key and password. The key will be bind to the password and then compared to the one stored on the database.

        Please help me with the binding process and encryption.
        Thanks.

        E Offline
        E Offline
        Erik Funkenbusch
        wrote on last edited by
        #3

        How is the key any different from the password then? Key + Password = Password... they're the same thing. Just have the user enter both in the password field, and use standard hashing.

        -- Where are we going? And why am I in this handbasket?

        1 Reply Last reply
        0
        • U User 11301740

          Hello;

          I'm working on a simple login form in c# in asp.net. I'd like to bind a key to the password and then save it in encrypted form. When the user logs in, he should enter his key and password. The key will be bind to the password and then compared to the one stored on the database.

          Please help me with the binding process and encryption.
          Thanks.

          R Offline
          R Offline
          Rahul Rajat Singh
          wrote on last edited by
          #4

          From the app perspective, The key is just another password. Instead of having user type complete password in one box, you will be asking him to split in two and then app will append it. As for the encryption. Passwords should never be stored encrypted. they should be hashed and stored. Better yet if you salt them before hashing. Following article will give you all you need to achieve this. A Beginner's Tutorial for Understanding and Implementing Password Hashing and Salting[^]

          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