Method: Encryption::String#decrypt

Defined in:
lib/helpers/string.rb

#decrypt(options = {}) ⇒ Object



12
13
14
15
16
# File 'lib/helpers/string.rb', line 12

def decrypt(options = {})
  string = self
  string = Base64.decode64(self) if options[:encode] or options[:encoded]
  encryptor(options).decrypt string
end