0

I created two methods Encrypt() and Decrypt() in my Web Application for Encrypting and Decrypting Data.

Now, I want to use same technique in my SQL Server Database for Decrypting Data.

Can anyone tell me how is it possible.

Please help!!

Thanks, Rahul

2
  • You might be able to use the CLR using a SQL Server Database Project and write functions in .NET to be called from SQL, would save you writing it all in SQL. Commented Mar 18, 2013 at 10:17
  • Hi Lloyd, Thanks for replying, can you explain in detail how can I do this?. Commented Mar 18, 2013 at 10:23

1 Answer 1

1

Even though is theoretically possible to load your functions as SQLCLR, you will get key management wrong. Use SQL Server cryptographic functions and discard everything you wrote yourself. Use a proper key hierarchy.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.