Class: Lite::Encryption::Schemes::NonDeterministic

Inherits:
Object
  • Object
show all
Extended by:
Helpers::ClassMethods
Defined in:
lib/lite/encryption/schemes/non_deterministic.rb

Instance Method Summary collapse

Instance Method Details

#decrypt(value, opts = {}) ⇒ Object



10
11
12
# File 'lib/lite/encryption/schemes/non_deterministic.rb', line 10

def decrypt(value, opts = {})
  cipher.decrypt_and_verify(value, **opts)
end

#encrypt(value, opts = {}) ⇒ Object



14
15
16
# File 'lib/lite/encryption/schemes/non_deterministic.rb', line 14

def encrypt(value, opts = {})
  cipher.encrypt_and_sign(value, **opts)
end