HashBytes (Transact-SQL)
SQL Server 2005
Returns the MD2, MD4, MD5, SHA, or SHA1 hash of its input.
Transact-SQL Syntax Conventions
- '<algorithm>'
-
Identifies the hashing algorithm to be used to hash the input. This is a required argument with no default. The single quotation marks are required.
- @input
-
Specifies a variable containing the data to be hashed. @input is varchar, nvarchar, or varbinary.
- ' input '
-
Specifies a string to be hashed.
