June 9, 2004 at 2:17 pm
Is there a SQL function that will perform a MD5 hash? For example:
Function Input Value: password
Function Output Value: 5F4DCC3B5AA765D61D8327DEB882CF99
The above is the one-way MD5 hash for 'password'. Thanks!
June 10, 2004 at 1:31 am
I would guess the answer is no.
SQL Server has no supported encryption functions that I know of
/Kenneth
June 10, 2004 at 2:17 am
There are PWDENCRYPT and PWDCOMPARE functions...
Declare @pswrd varbinary(255),
@Authorized int
select @pswrd = PWDENCRYPT('Hello')
SELECT @Authorized = PWDCOMPARE ('Hello',(@pswrd ),0)
if @Authorized = 0 print 'Get Lost!!@#'
if @Authorized = 1 print 'PLEASE COME IN'
Andy.
June 10, 2004 at 2:47 am
There is, but those are undocumented and highly unsupported for 'user' usage.
/Kenneth
June 11, 2004 at 5:04 am
I ran across this the other day and it works great thus far.
June 14, 2004 at 2:00 am
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply