Generate MD5 hash string with T-SQL - Hashbytes

This code example demonstrates Sql programming techniques and best practices.

select lower(CONVERT(VARCHAR(32), HashBytes('MD5', 'email@address.com'), 2))

Language: Sql
Original Source: BlogEngine.NET Migration
Code Lines: 5



 

 

 

 

Generate MD5 hash string with T-SQL - Hashbytes

select lower(CONVERT(VARCHAR(32), HashBytes('MD5', 'email@address.com'), 2))       &