Method: Encryption::String#encrypt

Defined in:
lib/helpers/string.rb

#encrypt(options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/helpers/string.rb', line 6

def encrypt(options = {})
  string = encryptor(options).encrypt self
  string = Base64.encode64(string) if options[:encode]
  string
end