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( = {}) string = encryptor().encrypt self string = Base64.encode64(string) if [:encode] string end |