Hi,
I’m trying to compare two values by using a MD5 hash.
In Railo I just use hash(email,‘MD5‘) and get „4288C64CD30107E8A115D0BED0D84DDF“
In MSSQL I’m using the following code(inspired by Paul Kukiel) (http://blog.kukiel.net/2009/11/coldfusion-md5-hash-directy-in-mssql.html)
SELECT upper(right(master.dbo.fn_varbintohexstr(HashBytes('MD5', email)), 32)) as email
The result here is „93AB37E0A898A07DDEF410C7D8E4813A“
So they never match.
Who’s right?
Any idea what is wrong here?
Cheers,
Michi
PS: Railo 3.2, MSSQL 10.0.4000
Looks like a character set problem. Thanks for the hint.
Michi