Sha256: 522ad81cfea089ef3711a9119d1d9fd3d8a97f14b7fcef0527c2c9d499fac343

Contents?: true

Size: 508 Bytes

Versions: 18

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module  Chamber
module  EncryptionMethods
class   None
  def self.encrypt(_key, value, _encryption_keys)
    value
  end

  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
end
end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
chamber-3.1.1 lib/chamber/encryption_methods/none.rb
chamber-3.1.0 lib/chamber/encryption_methods/none.rb
chamber-3.0.1 lib/chamber/encryption_methods/none.rb
chamber-3.0.0 lib/chamber/encryption_methods/none.rb
chamber-3.0.0rc2 lib/chamber/encryption_methods/none.rb
chamber-2.14.3 lib/chamber/encryption_methods/none.rb
chamber-3.0.0rc1 lib/chamber/encryption_methods/none.rb
chamber-2.14.2 lib/chamber/encryption_methods/none.rb
chamber-2.14.1 lib/chamber/encryption_methods/none.rb
chamber-2.14.0 lib/chamber/encryption_methods/none.rb
chamber-2.13.1 lib/chamber/encryption_methods/none.rb
chamber-2.13.0 lib/chamber/encryption_methods/none.rb
chamber-2.12.5 lib/chamber/encryption_methods/none.rb
chamber-2.12.3 lib/chamber/encryption_methods/none.rb
chamber-2.12.2 lib/chamber/encryption_methods/none.rb
chamber-2.12.1 lib/chamber/encryption_methods/none.rb
chamber-2.12.0 lib/chamber/encryption_methods/none.rb
chamber-2.11.0 lib/chamber/encryption_methods/none.rb