title: HASHBYTES() function usage in Sql server2008
body: <p>i came to know that Sql server2008 introduce HASHBYTES() which use md5 to encrypt any string like this way <code>Select HASHBYTES( 'md5', 'demo' )</code> and the the code used to decrypt like this way </p>
  
  <pre><code>Select CONVERT(VARCHAR(MAX), HASHBYTES( 'md5', 'demo' ), 2) 
  </code></pre>
  
  <p>but when i try this second select statement it is showing the value in encrypted format. so how to decrypt the demo as text. thanks</p>