Solved

SQL Encryption question

Posted on 2016-09-28
2
61 Views
Last Modified: 2016-09-29
Can anyone explain the difference between encryptbykey, encryption, encryptbypassphrase, and encryptbycert?

I basically want to know when is it ideal to use one method versus the other.
0
Comment
Question by:isames
2 Comments
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 41820866
Just for the reference:

by Key
https://msdn.microsoft.com/en-us/library/ms174361.aspx

By passphrase
https://msdn.microsoft.com/en-us/library/ms190357.aspx
By cert
https://msdn.microsoft.com/en-us/library/ms188061.aspx

The key is info in the sql server.
The passphrase uses external INPUT.

You can also use cert based encryption.

You can encrypt the whole database. You can encrypt individual columns

Most deals with who controls access to the parameters as well as DR backup of references used for encryption......

I.e when the app uses passphrase, the app has to maintain the information use to encrypt to decrypt.

It might be a consideration for the setup/DR plans/backup plans..

Presumably if you are engaging in encrypting data with either, you should make sure your SQL connection forces encryption since all of these transmit the data in clear text.

You could encrypt data within the APP inserting encrypted data...
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL, add where clause 5 24
SQL Recursion schedule 13 18
Testing for Null in Stored Proc Return Value 5 15
Loops in SQL server code 4 20
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question