Re: Re:Data Encryption
From: Tom O (tomo@tomo.com)
Date: 11/14/02
- Next message: Garrett Fitzgerald: "Re: Confused about ListUserColumnPermissions"
- Previous message: Richard Waymire [MS]: "Re: Cumulative Patches (for SQL Server)"
- In reply to: Vishal Parkar: "Re:Data Encryption"
- Next in thread: Andrey Koubychev: "Re: Data Encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Tom O" <tomo@tomo.com> Date: Wed, 13 Nov 2002 23:03:26 -0600
You can't really decrypt the string. It's a one way hash. You can guess at
what the original string was and then use pwdcompare to verify your guess, but
once the data has been hashed there is no method to return it to its plain-text
state.
"Vishal Parkar" wrote:
> SQL Server has 2 undocumented password encryption function
> by which you can encrypt and decrypt a string.
>
> Following is the example.
>
> declare @x varbinary(500)
> declare @ret int
> select @x=convert(varbinary(500),pwdencrypt('check'))
> select pwdcompare('check',@x, 0)
>
> You can use pwdencrypt in a update/insert trigger to
> encrypt the values of a table's column. While decrypting
> you'll have to use pwdcompare which will return 0 or 1 on
> the basis of failed or successfull comparison respectively.
>
> for more information visit
> http://www.sqlmag.com/Articles/Index.cfm?ArticleID=9809
>
> --Vishal
>
> >-----Original Message-----
> >Oracle 8i + includes the OBFUSCATION toolkit which
> enables
> >the creation of hash and random keys. Does anyone know if
> >MSSQL 7/2k offers the same type of encryption for
> >sensitive data?
> >
> >Note: my encryption has to be done through a store proc,
> >not through any other software.
> >
> >Thanks, JB
> >.
> >
- Next message: Garrett Fitzgerald: "Re: Confused about ListUserColumnPermissions"
- Previous message: Richard Waymire [MS]: "Re: Cumulative Patches (for SQL Server)"
- In reply to: Vishal Parkar: "Re:Data Encryption"
- Next in thread: Andrey Koubychev: "Re: Data Encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|