Results 1 to 4 of 4

Thread: Encryt/decrypt password using SQL Server 2000 and my C# code

  1. #1
    Join Date
    May 2006
    Posts
    13

    Encryt/decrypt password using SQL Server 2000 and my C# code

    Hi,

    How can i encript passwords in my database and use the same algorithm in my C# code to decrypt it?

    I don't want to send between my app and DB server the logins in clear text, i would like to send it encrypted from my C# code and with the same algorithm decrypt it in the sql server.

    Thanks in Advance,
    Teixeira

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    You may need third party encryt tool.

  3. #3
    Join Date
    May 2006
    Posts
    13
    Do you know any open source or free tool for that?

    Regards,
    Teixeira

  4. #4
    Join Date
    Aug 2006
    Posts
    57
    you should never decrypt passwords. You should encrypt them, and then when you need to compare two passwords, encrypt them both and compare the result.

    Here's a way to do the encryption in sql:

    http://sqlblindman.googlepages.com/encryptpassword

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •