Class: Cryptoform::EncryptionBackends::Backend
- Inherits:
-
Object
- Object
- Cryptoform::EncryptionBackends::Backend
- Defined in:
- lib/cryptoform/encryption_backends/backend.rb
Direct Known Subclasses
Instance Method Summary collapse
- #decrypt(ciphertext) ⇒ Object
- #encrypt(object) ⇒ Object
- #generate_key ⇒ Object
-
#initialize(state_name, **params) ⇒ Backend
constructor
A new instance of Backend.
Constructor Details
#initialize(state_name, **params) ⇒ Backend
Returns a new instance of Backend.
4 5 6 7 |
# File 'lib/cryptoform/encryption_backends/backend.rb', line 4 def initialize(state_name, **params) @state_name = state_name @params = params end |
Instance Method Details
#decrypt(ciphertext) ⇒ Object
9 10 11 |
# File 'lib/cryptoform/encryption_backends/backend.rb', line 9 def decrypt(ciphertext) raise NotImplementedError end |
#encrypt(object) ⇒ Object
13 14 15 |
# File 'lib/cryptoform/encryption_backends/backend.rb', line 13 def encrypt(object) raise NotImplementedError end |
#generate_key ⇒ Object
17 18 19 |
# File 'lib/cryptoform/encryption_backends/backend.rb', line 17 def generate_key raise NotImplementedError end |