symmetric-key

How to backup Symmetric Key in SQL Server?

Deadly 提交于 2019-12-01 18:19:45
问题 I use the next code to create SQL Encryption keys CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<Pass>' CREATE CERTIFICATE MyEncryptCert WITH SUBJECT = 'Descryption', EXPIRY_DATE = '2115-1-1' CREATE SYMMETRIC KEY MySymmetricKey WITH ALGORITHM = AES_256 ENCRYPTION BY CERTIFICATE MyEncryptCert How I encrypt data OPEN SYMMETRIC KEY MySymmetricKey DECRYPTION BY CERTIFICATE MyEncryptCert SET @Result = ENCRYPTBYKEY(KEY_GUID('MySymmetricKey'), '<String to encrypt>') CLOSE SYMMETRIC KEY MySymmetricKey

SQL Server 2008 + PCI Compliance? Pertains to PCI, as well as Symmetric keys!

那年仲夏 提交于 2019-11-30 16:04:57
I've never had to deal with PCI compliance before. I've been reading their documentation and it says I need to protect the credit card number, expiration date and the card holder's name. No storage of security codes ever. In their documentation, it just says protect. Is this saying I need to encrypt these 3 columns in my database? I thought only the number was the data that needed to be encrypted. Either way, I'm fine with. If I need to encrypt all three columns, do I share one certificate and have 3 symmetric keys, or will I only need 1 of each, with that symmetric key being used on all 3

SQL Server 2008 + PCI Compliance? Pertains to PCI, as well as Symmetric keys!

别说谁变了你拦得住时间么 提交于 2019-11-29 23:55:32
问题 I've never had to deal with PCI compliance before. I've been reading their documentation and it says I need to protect the credit card number, expiration date and the card holder's name. No storage of security codes ever. In their documentation, it just says protect. Is this saying I need to encrypt these 3 columns in my database? I thought only the number was the data that needed to be encrypted. Either way, I'm fine with. If I need to encrypt all three columns, do I share one certificate

Why is AES more secure than DES?

点点圈 提交于 2019-11-29 21:26:00
I am beginning to learn crypto algorithms and I understand how the above mentioned algorithms work. Is it that the key length of AES is longer? Which steps of AES encryption makes it less vulnerable than DES? DES was designed with an effective key length of 56 bits, which is vulnerable to exhaustive search . It also has some weaknesses against differential and linear cryptanalysis: these allow to recover the key using, respectively, 2 47 chosen plaintexts, or 2 43 known plaintexts. A known plaintext is an encrypted block (an 8-byte block, for DES) for which the attacker knows the corresponding