Module: Travis::Encrypt::Helpers

Defined in:
lib/travis/encrypt/helpers.rb,
lib/travis/encrypt/helpers/common.rb,
lib/travis/encrypt/helpers/sequel.rb,
lib/travis/encrypt/helpers/active_record.rb

Defined Under Namespace

Modules: ActiveRecord, Common, Sequel

Instance Method Summary collapse

Instance Method Details

#decrypt(string, options = {}) ⇒ Object



12
13
14
15
# File 'lib/travis/encrypt/helpers.rb', line 12

def decrypt(string, options = {})
  options[:key] ||= Encrypt.key
  Encrypt.decrypt(string, options)
end

#encrypt(string, options = {}) ⇒ Object



7
8
9
10
# File 'lib/travis/encrypt/helpers.rb', line 7

def encrypt(string, options = {})
  options[:key] ||= Encrypt.key
  Encrypt.encrypt(string, options)
end