How to decrypt a password from SQL server?

前端 未结 6 1652
醉梦人生
醉梦人生 2020-12-01 02:30

I have this query in sql server 2000:

select pwdencrypt(\'AAAA\')

which outputs an encrypted string of \'AAAA\':

0x0100CF465B7B1         


        
6条回答
  •  有刺的猬
    2020-12-01 02:45

    You shouldn't really be de-encrypting passwords.

    You should be encrypting the password entered into your application and comparing against the encrypted password from the database.

    Edit - and if this is because the password has been forgotten, then setup a mechanism to create a new password.

提交回复
热议问题