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

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

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

    Encrypt identity password

    Anand, Jul 18, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    553
  2. Henry
    Replies:
    3
    Views:
    24,066
    Henry
    Aug 4, 2004
  3. AAaron123
    Replies:
    2
    Views:
    2,194
    AAaron123
    Jan 16, 2009
  4. AAaron123
    Replies:
    1
    Views:
    1,350
    Oriane
    Jan 16, 2009
  5. http://ejobseek.com

    Encrypt in Perl, De-encrypt in Javascript

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

Share This Page