Encrypting Passwords

Discussion in 'ASP .Net' started by =?Utf-8?B?VGF5bw==?=, May 27, 2004.

  1. How do I encrypt passwords before saving in the database
     
    =?Utf-8?B?VGF5bw==?=, May 27, 2004
    #1
    1. Advertising

  2. Steve C. Orr [MVP, MCSD], May 27, 2004
    #2
    1. Advertising

  3. Tayo,

    The recommended way of storing passwords is hashing. Hashing works one way,
    you can't calculate the actual password out of hash value. DotNet implements
    hashing in function
    System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile

    You might want to use salt values for better security. Look at
    http://www.microsoft.com/downloads/...FamilyID=055FF772-97FE-41B8-A58C-BF9C6593F25E
    for the full explanation.

    Eliyahu

    "Tayo" <> wrote in message
    news:...
    > How do I encrypt passwords before saving in the database.
    >
     
    Eliyahu Goldin, May 27, 2004
    #3
  4. =?Utf-8?B?VGF5bw==?=

    Nick Gilbert Guest

    > The recommended way of storing passwords is hashing.

    Don't forget that if you choose to store the password as a hash, you
    will never be able to remind the user of their password (there is no way
    to get the password out of the hash). Instead you will need to provide a
    reset password feature which perhaps, changes the password to random
    chars and e-mails it to them.

    Nick...
     
    Nick Gilbert, May 27, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Elliot M. Rodriguez

    Impersonation Question - Encrypting Passwords

    Elliot M. Rodriguez, Nov 4, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    406
    Elliot M. Rodriguez
    Nov 4, 2003
  2. Andy Grove

    Encrypting passwords using Java

    Andy Grove, Feb 12, 2004, in forum: Java
    Replies:
    8
    Views:
    2,168
    Joona I Palaste
    Feb 14, 2004
  3. Replies:
    2
    Views:
    415
    Michael Borgwardt
    Apr 15, 2004
  4. Ben Knight
    Replies:
    0
    Views:
    134
    Ben Knight
    Feb 8, 2009
  5. TheDeerHunter

    Encrypting long passwords

    TheDeerHunter, Mar 26, 2007, in forum: Perl Misc
    Replies:
    5
    Views:
    149
    bytebro
    Mar 26, 2007
Loading...

Share This Page