Avatar of whosbetterthanme
whosbetterthanme
Flag for United States of America asked on

Encrypt/Decrypt in VB.net/SQL Server

I have a need to allow a user to store sensetive data into a table where only they can understand the data, and no developer or admin could read it and decrypt it without a Key.

Here's how it would work:

From a VB.net app:
They enter a value they want to store (say Hello Word!) and a Key (say 123). That key is used to encrypt the data. The Hello World! data is now stored in a table in SQL as an encrypted string.

Now in order to decrypt the string into plain text so they can read it again, they would have to use the Key again (123).

How is this possible?

The reason for this is that I do not want anyone to be able to understand the data stored, but the user needs to be able to read it only if they have the Key. The Key should not be stored in code, or anywhere but entered in each time.

Microsoft SQL Server 2005EncryptionVisual Basic.NET

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
whosbetterthanme

ASKER
Exactly what I was looking for thanks.
Nasir Razzaq

Glad to help :-)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23