Will be presenting at the Seattle Code Camp https://seattle.codecamp.us/ this Saturday. My talk is entitled "Kick Your Hash" and I will attempt to bridge the cryptography gap between code and theory by showing SQL Server and .NET code, real life examples, and practical correct uses for Hashing. Example 1: SELECT HashBytes( 'MD5' , 'password' ) SELECT HashBytes( 'MD5' , CONVERT ( varchar ( max ), 'password' )) SELECT HashBytes( 'MD5' , CONVERT ( nvarchar ( max ), 'password' )) Example 2a: ALTER PROC CheckLogin @Login varchar (50), @Password varchar (50), @Valid bit OUTPUT AS SET NOCOUNT ON SELECT * FROM [ User ] WHERE @Login = [ User ].[Login] AND [ User ].Hash = HashBytes( 'MD5' , CONVERT ( varchar ( max ),[ User ].Prefix) + @Password) IF ( @@ROWCOUNT >0) SET @Valid = 1 ELSE SET @Valid = 0 Example 2b: CREATE TABLE [dbo].[User]( [UserId] [uniqueide...