Class: Chamber::EncryptionMethods::None

Inherits:
Object
  • Object
show all
Defined in:
lib/chamber/encryption_methods/none.rb

Class Method Summary collapse

Class Method Details

.decrypt(key, value, _decryption_keys) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/chamber/encryption_methods/none.rb', line 10

def self.decrypt(key, value, _decryption_keys)
  return value if value.nil?

  warn "WARNING: It appears that you would like to keep your information for #{key} " \
       "secure, however the value for that setting does not appear to be encrypted. " \
       "Make sure you run 'chamber secure' before committing."

  value
end

.encrypt(_key, value, _encryption_keys) ⇒ Object



6
7
8
# File 'lib/chamber/encryption_methods/none.rb', line 6

def self.encrypt(_key, value, _encryption_keys)
  value
end