Re: Encrypting Data using SQL Server 2005
- From: Kent Tegels <ktegels@xxxxxxxxxxx>
- Date: Thu, 8 Nov 2007 17:48:38 +0000 (UTC)
This is a multi-part message in MIME format.Hello Greg,
GL> So if I understand you correctly the encrypted data can not be decrypted without the appropriate Service Master Key, even if you have the correct symmetric key password. Meaning you can't move a dataase backup of the encrypted data from one server to another and decrypt it using the only the symmetric key. Is this true?
It was certainly the understanding I had from reading BOL and the testing I did. I couldn't get your backup example to work and wondered if there wasn't maybe so vodoo getting done during the restore process so a did a dettach/attach insead (attachment #1.)
GL> Now so I'm wondering why I can move a database that has encrypted data from one server to another by just doing a database backup and restore and then issuing the open symmetric key using the password from the target server, like so.
There's a note in BOL that gave me a different understanding of this:
"When a symmetric key is encrypted with a password instead of the public key of the database master key, the TRIPLE_DES encryption algorithm is used. Because of this, keys that are created with a strong encryption algorithm, such as AES, are themselves secured by a weaker algorithm."
This was added in December 2006. So when you sign a symmetric key with a password, it looks like it just internalizes the key under 3DES and makes it transportable. That sucks because now its way easier to brute force attack that key. UGH!
Even more annoyingly, the same behavior seems to apply to symmetic keys at are encrypted by asymmetric keys where that key is encrypted by a password. See attachment #2.
Attachment:
ex1.sql
Description: Binary data
Attachment:
ex2.sql
Description: Binary data
- References:
- Re: Encrypting Data using SQL Server 2005
- From: Greg Larsen
- Re: Encrypting Data using SQL Server 2005
- Prev by Date: Re: Error 18456
- Next by Date: Re: sa password
- Previous by thread: Re: Encrypting Data using SQL Server 2005
- Next by thread: Re: Encrypting Data using SQL Server 2005
- Index(es):
Relevant Pages
|
|