lib/symmetric_encryption/keystore/memory.rb in symmetric-encryption-4.3.2 vs lib/symmetric_encryption/keystore/memory.rb in symmetric-encryption-4.3.3
- old
+ new
@@ -33,10 +33,10 @@
}
end
# Stores the Encryption key in a string.
# Secures the Encryption key by encrypting it with a key encryption key.
- def initialize(encrypted_key: nil, key_encrypting_key:)
+ def initialize(key_encrypting_key:, encrypted_key: nil)
@encrypted_key = encrypted_key
@key_encrypting_key = key_encrypting_key
end
# Returns the Encryption key in the clear.