Class: CryptoconditionsRuby::Crypto::Base64Encoder
- Inherits:
-
Object
- Object
- CryptoconditionsRuby::Crypto::Base64Encoder
- Defined in:
- lib/cryptoconditions_ruby/crypto.rb
Instance Method Summary collapse
Instance Method Details
#decode(data) ⇒ Object
56 57 58 |
# File 'lib/cryptoconditions_ruby/crypto.rb', line 56 def decode(data) Base64.decode64(data) end |
#encode(data) ⇒ Object
52 53 54 |
# File 'lib/cryptoconditions_ruby/crypto.rb', line 52 def encode(data) Base64.encode64(data).strip end |