Sha256: 954dc8e361f337bd90b5ae8afb279e4d811c24d583af99af65b9cdcb81f8c179

Contents?: true

Size: 404 Bytes

Versions: 5

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

module Xml
  module Kit
    module Crypto
      class UnknownCipher
        attr_reader :algorithm, :key

        def initialize(algorithm, key)
          @algorithm = algorithm
          @key = key
        end

        def self.matches?(_algorithm)
          true
        end

        def decrypt(cipher_text)
          cipher_text
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xml-kit-0.6.0 lib/xml/kit/crypto/unknown_cipher.rb
xml-kit-0.5.0 lib/xml/kit/crypto/unknown_cipher.rb
xml-kit-0.4.0 lib/xml/kit/crypto/unknown_cipher.rb
xml-kit-0.3.1 lib/xml/kit/crypto/unknown_cipher.rb
xml-kit-0.3.0 lib/xml/kit/crypto/unknown_cipher.rb