Class: Veil::Cipher::V1

Inherits:
Object
  • Object
show all
Defined in:
lib/veil/cipher/v1.rb

Instance Method Summary collapse

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

Raises:

  • (RuntimeError)


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