2

I was looking for some solution you can use RSACryptoServiceProvider to decrypt encrypted data stored in MS SQL Server. Is it possible to encrypt data using ENCRYPTBYCERT in SQL Server, then decrypt it in C#?

I found this question, Decrypt SQL Server encrypted data from .net and tried it but I was unsuccessful. I'm always receiving an error message Bad key. from RSACryptoServiceProvider.Decrypt function.

Any code or clue on how to implement this?

0

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.