The SQL MD5 hashing function returns a different result to others e.g. passwordsgenerator.net/md5-hash-generator
First of all I pick a source string at random, which in this case is:
спасибо(:
Providing the Miracle salad MD5 generator with my source string returned the following result:
e1295bb206823340c694b795c17eb4c5
The query I used to generate an MD5 hash in SQL Server is as follows:
SELECT CONVERT(VARCHAR(32), HASHBYTES('md5', 'спасибо(:'), 2)
...which returned the following result:
C4E6F99E8CD676020DC7D3E13612D51A
Please can someone help me figure out a) why are they different and b) an Sql query that will return the same result as passwordsgenerator.net?
md5sum using utf-8 encode string. How do you use this generator in your application?