Questions tagged [hashbytes]

A hashing function within the Microsoft Transact-SQL Database Engine.

A hashing function within the Microsoft Transact-SQL Database Engine which supports the following algorithms:

  • MD2
  • MD4
  • MD5
  • SHA
  • SHA1
  • SHA2_256
  • SHA2_512

Resources

62 questions
-1
votes
1 answer

HASHBYTES() function usage in Sql server2008

i came to know that Sql server2008 introduce HASHBYTES() which use md5 to encrypt any string like this way Select HASHBYTES( 'md5', 'demo' ) and the the code used to decrypt like this way Select CONVERT(VARCHAR(MAX), HASHBYTES( 'md5', 'demo' ), 2)…
Thomas
  • 33,544
  • 126
  • 357
  • 626
-2
votes
2 answers

Create a random string of digits

I need to create a random string of digits of given length CREATE FUNCTION UniqConvert (@calue as varchar(max), @len as int) The output should be of the length @len and should be unique per input @value I already asked similar question: Create…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
1 2 3 4
5