lib/kms_encrypted/box.rb in kms_encrypted-1.2.1 vs lib/kms_encrypted/box.rb in kms_encrypted-1.2.2
- old
+ new
@@ -1,10 +1,10 @@
module KmsEncrypted
class Box
attr_reader :key_id, :version, :previous_versions
def initialize(key_id: nil, version: nil, previous_versions: nil)
- @key_id = key_id || ENV["KMS_KEY_ID"]
+ @key_id = key_id || KmsEncrypted.key_id
@version = version || 1
@previous_versions = previous_versions || {}
end
def encrypt(plaintext, context: nil)