Class: GoogleAPI::Encrypter
- Inherits:
-
Object
- Object
- GoogleAPI::Encrypter
- Defined in:
- lib/google-api/encrypter.rb
Class Method Summary collapse
Class Method Details
.decrypt!(value) ⇒ Object
10 11 12 |
# File 'lib/google-api/encrypter.rb', line 10 def decrypt!(value) crypt(:decrypt, Base64.strict_decode64(value)) end |
.encrypt!(value) ⇒ Object
6 7 8 |
# File 'lib/google-api/encrypter.rb', line 6 def encrypt!(value) Base64.strict_encode64(crypt(:encrypt, value)) end |