lib/symmetric_encryption/keystore/memory.rb in symmetric-encryption-4.1.0.beta1 vs lib/symmetric_encryption/keystore/memory.rb in symmetric-encryption-4.1.0
- old
+ new
@@ -13,10 +13,10 @@
# * For development and testing purposes only!!
# * Never store the encrypted encryption key in the source code / config file.
def self.generate_data_key(cipher_name:, app_name:, environment:, version: 0, dek: nil)
version >= 255 ? (version = 1) : (version += 1)
- kek = SymmetricEncryption::Key.new(cipher_name: cipher_name)
+ kek = SymmetricEncryption::Key.new(cipher_name: cipher_name)
dek ||= SymmetricEncryption::Key.new(cipher_name: cipher_name)
encrypted_key = new(key_encrypting_key: kek).write(dek.key)
{