|
komkrit
Yak Posting Veteran
Thailand
60 Posts |
Posted - 07/27/2012 : 14:10:11
|
One thing I think, you backup/restore database to another server. So Database Master Key goes together with database backup file. In my test, I can only use the following steps to decrypt data from database backup. But decrypt an raw encrypted data without database back is more complex
How to read encrypted data from database backup. 1. Restore database from backup to any server. 2. Open Master Key with password (you have to remember Database Master Key password) 3. Open Symmetric Key 4. You can read data by function decrypt() right now.
How to read encrypted data from exported file 1. Create blank database. 2. Restore Database Master Key from file(database master key backup file) 3. Open Database Master Key with password 4. Create certificate from file(Certificate Backup with private key + Certificate Password) 5. Create Symmetric Key from command with Key_SOURCE + IDENTITY_VALUE 6. Open Symmetric Key 7. You can read data by function decrypt() right now.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Komkrit Yensirikul Currently be a DBA in worldwide hotel reservation. Experienced in top leading banking environment. |
 |
|