Class: Veil::Cipher::V1
- Inherits:
-
Object
- Object
- Veil::Cipher::V1
- Defined in:
- lib/veil/cipher/v1.rb
Instance Method Summary collapse
- #decrypt(anything) ⇒ Object
- #encrypt(plaintext) ⇒ Object
-
#initialize(_opts = {}) ⇒ V1
constructor
A new instance of V1.
Constructor Details
#initialize(_opts = {}) ⇒ V1
Returns a new instance of V1.
4 5 |
# File 'lib/veil/cipher/v1.rb', line 4 def initialize(_opts = {}) end |
Instance Method Details
#decrypt(anything) ⇒ Object
11 12 13 |
# File 'lib/veil/cipher/v1.rb', line 11 def decrypt(anything) anything end |
#encrypt(plaintext) ⇒ Object
7 8 9 |
# File 'lib/veil/cipher/v1.rb', line 7 def encrypt(plaintext) raise RuntimeError, "Veil::Cipher::V1#encrypt should never be called" end |