Class: Lite::Encryption::Message
- Inherits:
-
Object
- Object
- Lite::Encryption::Message
- Defined in:
- lib/lite/encryption/message.rb
Instance Method Summary collapse
Instance Method Details
#decrypt(value, opts = {}) ⇒ Object
31 32 33 |
# File 'lib/lite/encryption/message.rb', line 31 def decrypt(value, opts = {}) encryptor.decrypt_and_verify(value, **opts) end |
#encrypt(value, opts = {}) ⇒ Object
35 36 37 |
# File 'lib/lite/encryption/message.rb', line 35 def encrypt(value, opts = {}) encryptor.encrypt_and_sign(value, **opts) end |