Class: Cryptoform::EncryptionBackends::DiffLockbox
- Inherits:
-
Lockbox
- Object
- Lockbox
- Cryptoform::EncryptionBackends::DiffLockbox
- Defined in:
- lib/cryptoform/encryption_backends/diff_lockbox.rb
Instance Method Summary collapse
Instance Method Details
#decrypt(ciphertext) ⇒ Object
8 9 10 |
# File 'lib/cryptoform/encryption_backends/diff_lockbox.rb', line 8 def decrypt(ciphertext) decrypt_object(JSON.parse(ciphertext, symbolize_names: true), lockbox) end |
#encrypt(json) ⇒ Object
4 5 6 |
# File 'lib/cryptoform/encryption_backends/diff_lockbox.rb', line 4 def encrypt(json) JSON.pretty_generate(encrypt_object(json, lockbox)) end |