Is this Normal? Encrypted data is still same after alter master key regenerate with new password has been executed.


hi all,

this may normal want make sure.

i have encrypted data in table. can decrypt correctly without issue. here 1 row pkid =1

0x00f353374962954f9419c3641e96de610100000085a8516dbd9c95bbd256143ff1deb39825cbb8cc0cb8b164809303c335569fff9cca3d68543266f412b05c7022124bad0195f5229c7d24f89751d7527918b72f

i executed below steps change master key.

open master key decryption password = 'my0ldp@55word'    go        alter master key regenerate encryption password = 'mym0strecentnewp@ssword'    go.

everything executed successfully.

below  encrypted data pkid =1 

0x00f353374962954f9419c3641e96de610100000085a8516dbd9c95bbd256143ff1deb39825cbb8cc0cb8b164809303c335569fff9cca3d68543266f412b05c7022124bad0195f5229c7d24f89751d7527918b72f

decryption working correctly.

i notice encrypted data same old key , new key. normal. expecting different pattern in encrypted data after master key change. 

thanks in advance,

snaseer

houston-tx

read

encryption hierarchy

you have changed key gives access other keys.  when issue "alter master key regenerate "

the regenerate option re-creates database master key , keys protects. keys first decrypted old master key, , encrypted new master key. resource-intensive operation should scheduled during period of low demand, unless master key has been compromised.

alter master key

the other keys not changed, decrypted , re-encrypted.  data encrypted other keys does not have decrypted , re-encrypted.

david


david http://blogs.msdn.com/b/dbrowne/




SQL Server  >  Getting started with SQL Server



Comments

Popular posts from this blog

SQL Server PSProvider SQL Server Authentication

BIT Version

How to calculate the delta size while diffing the files in TeamFoundationServer ?