I want to encrypt and decrypt data with sql server using RSA or SHA algorithm rahter than doing it at UI.
Is it possible to do this.
Some Code Snippet will be a great help
I want to encrypt and decrypt data with sql server using RSA or SHA algorithm rahter than doing it at UI.
Is it possible to do this.
Some Code Snippet will be a great help
You can use this article as start.
And this for understand Database Encryption in SQL Server 2008 Enterprise Edition
if u need to encrpt only a string (Can't Decrypt these are One way)
u may try
HashBytes ('<algorithm>', { @input | 'input' } )<algorithm>::= MD2 | MD4 | MD5 | SHA | SHA1
ref : http://technet.microsoft.com/en-us/library/ms174415.aspx