Class: Xml::Kit::Crypto::UnknownCipher

Inherits:
Object
  • Object
show all
Defined in:
lib/xml/kit/crypto/unknown_cipher.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(algorithm, key) ⇒ UnknownCipher

Returns a new instance of UnknownCipher.



7
# File 'lib/xml/kit/crypto/unknown_cipher.rb', line 7

def initialize(algorithm, key); end

Class Method Details

.matches?(_algorithm) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/xml/kit/crypto/unknown_cipher.rb', line 9

def self.matches?(_algorithm)
  true
end

Instance Method Details

#decrypt(cipher_text) ⇒ Object



13
14
15
# File 'lib/xml/kit/crypto/unknown_cipher.rb', line 13

def decrypt(cipher_text)
  cipher_text
end