summaryrefslogtreecommitdiff
path: root/lib/xml/kit/crypto/unknown_cipher.rb
blob: f74eb3068bf2e4d129942ee3865767af3f6ff3ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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