I need to encrypt few column level data in multiple tables in SQL server 2014. I'm a little confused after reading an article on Encrypt a column of data from the microsoft forum. Do I need to create a new column in the table for encrypted data? I mean is it possible to encrypt the existing column instead of creating a new column for encrypted data? Say Column A has a credit card information which I need to encrypt. Per the article there is a need to create Column B which will store the encrypted credit card information. Is it possible to do an encryption on column A instead of creating extra Column B. Thanks
Column level data encryption in SQL Server 2014
1.1k views Asked by LearningMacro At
1
There are 1 answers
Related Questions in SQL
- Why we use general interface(GI)?
- Spotfire cross table - calculate difference when multiple hierarchies are on Columns
- parsing a xml using java code palette in tibco
- Tibco AMX Business Studio BWSE service identification Issues after BC pallet installation
- How do you solve EMS Server connection when giving an error when you test?
- How to execute command using Tibco BW
- TiBCO Spotfire - How to Calculate only the last 3 columns in a Data - see descr
- TIBCO Hawk Sample ConsoleApp Testing
- Get all messages from topic
- Details on Demand
Related Questions in ENCRYPTION
- Why we use general interface(GI)?
- Spotfire cross table - calculate difference when multiple hierarchies are on Columns
- parsing a xml using java code palette in tibco
- Tibco AMX Business Studio BWSE service identification Issues after BC pallet installation
- How do you solve EMS Server connection when giving an error when you test?
- How to execute command using Tibco BW
- TiBCO Spotfire - How to Calculate only the last 3 columns in a Data - see descr
- TIBCO Hawk Sample ConsoleApp Testing
- Get all messages from topic
- Details on Demand
Related Questions in SQL-SERVER-2014
- Why we use general interface(GI)?
- Spotfire cross table - calculate difference when multiple hierarchies are on Columns
- parsing a xml using java code palette in tibco
- Tibco AMX Business Studio BWSE service identification Issues after BC pallet installation
- How do you solve EMS Server connection when giving an error when you test?
- How to execute command using Tibco BW
- TiBCO Spotfire - How to Calculate only the last 3 columns in a Data - see descr
- TIBCO Hawk Sample ConsoleApp Testing
- Get all messages from topic
- Details on Demand
Related Questions in DATABASE-SECURITY
- Why we use general interface(GI)?
- Spotfire cross table - calculate difference when multiple hierarchies are on Columns
- parsing a xml using java code palette in tibco
- Tibco AMX Business Studio BWSE service identification Issues after BC pallet installation
- How do you solve EMS Server connection when giving an error when you test?
- How to execute command using Tibco BW
- TiBCO Spotfire - How to Calculate only the last 3 columns in a Data - see descr
- TIBCO Hawk Sample ConsoleApp Testing
- Get all messages from topic
- Details on Demand
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In almost every case, you have to create a new column for encrypted data. Encrypted data is stored in SQL Server as varbinary type. Plaintext data is almost always in varchar or some other character type. In your case, your ColumnA is probably varchar(16) or something like that while ColumnB is probably varbinary(128).
You can and should drop the original column after the encryption process is complete else you are still exposed to most security risks. You can also rename the new varbinary type column that holds the ciphertext of the sensitive data to the original column name if you like. Just remember that it now holds data in ciphertext instead of the original plaintext.
If your source type is also varbinary and has sufficient length to store the newly encrypted data, you could do an in-place encryption but the risk there is if you change your mind or discovered a bug in your code during or shortly after execution, you don't have a quick & easy way to back out of the changes. You also lose the ability to do side-by-side testing/verification when you encrypt in place. Finally, you probably won't have too many varbinary columns that require encryption, hopefully.