encrypt password

Discussion in 'ASP .Net' started by =?Utf-8?B?RGFuaWVs?=, Sep 1, 2005.

  1. Hi All,
    Does anyone know how to encrypt the password before store in the sql database?
    In addition, decrypt the password from database before comparison.

    The purpose to do it because to hide the human readable password although
    the user open the sqlserver database.

    Any ideas? Any better suggestion? any guidelines?
    Thank you in advance.

    Best regards,
    Ocurnos
     
    =?Utf-8?B?RGFuaWVs?=, Sep 1, 2005
    #1
    1. Advertisements

  2. you can use System.Security.Cryptography classes to encript the password and
    then store it in the database.
    for more info: http://www.codeproject.com/aspnet/encrypt.asp

    Cheers,

    Dhanushka Nuwan



    "Daniel" <> wrote in message
    news:...
    > Hi All,
    > Does anyone know how to encrypt the password before store in the sql

    database?
    > In addition, decrypt the password from database before comparison.
    >
    > The purpose to do it because to hide the human readable password although
    > the user open the sqlserver database.
    >
    > Any ideas? Any better suggestion? any guidelines?
    > Thank you in advance.
    >
    > Best regards,
    > Ocurnos
     
    Dhanushka Nuwan, Sep 1, 2005
    #2
    1. Advertisements

  3. Ocurnos,

    The common approach is to hash passwords one way. You can't decrypt it.
    Rather you hash the user entry with the same algorythm and compare the
    hashed values. Look in

    How To: Use Forms Authentication with SQL Server 2000
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.asp

    Eliyahu

    "Daniel" <> wrote in message
    news:...
    > Hi All,
    > Does anyone know how to encrypt the password before store in the sql

    database?
    > In addition, decrypt the password from database before comparison.
    >
    > The purpose to do it because to hide the human readable password although
    > the user open the sqlserver database.
    >
    > Any ideas? Any better suggestion? any guidelines?
    > Thank you in advance.
    >
    > Best regards,
    > Ocurnos
     
    Eliyahu Goldin, Sep 1, 2005
    #3
    1. Advertisements

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. Anand

    Encrypt identity password

    Anand, Jul 18, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    654
  2. Henry
    Replies:
    3
    Views:
    24,644
    Henry
    Aug 4, 2004
  3. Jason Williard

    Encrypt Password w/MD5

    Jason Williard, Oct 16, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    731
    Steve C. Orr [MVP, MCSD]
    Oct 17, 2004
  4. Alex Nitulescu
    Replies:
    3
    Views:
    753
    Alex Nitulescu
    Feb 11, 2005
  5. Microsoft

    Password encrypt/decrypt

    Microsoft, Oct 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    7,782
    =?Utf-8?B?c3Jpbmk=?=
    Oct 5, 2005
  6. AAaron123
    Replies:
    2
    Views:
    3,012
    AAaron123
    Jan 16, 2009
  7. AAaron123
    Replies:
    1
    Views:
    1,648
    Oriane
    Jan 16, 2009
  8. http://ejobseek.com

    Encrypt in Perl, De-encrypt in Javascript

    http://ejobseek.com, Sep 1, 2003, in forum: Perl Misc
    Replies:
    3
    Views:
    566
    James Willmore
    Sep 1, 2003
Loading...