class String
Public Instance Methods
to_the_decrypted()
click to toggle source
# File lib/the_encrypted_string.rb, line 20 def to_the_decrypted encrypted_str = Base64.urlsafe_decode64(self) Encryptor.decrypt encrypted_str end
to_the_encrypted()
click to toggle source
# File lib/the_encrypted_string.rb, line 15 def to_the_encrypted encrypted_str = Encryptor.encrypt(self) Base64.urlsafe_encode64 encrypted_str end