Sha256: 4ff1f2ae1a482c627e71eb3b44258355204868df3db0234fc8e45a04ae5777a4

Contents?: true

Size: 331 Bytes

Versions: 10

Compression:

Stored size: 331 Bytes

Contents

module Sym
  module App
    module PrivateKey
      class Base64Decoder < Struct.new(:encoded_key)

        def key
          return nil if encoded_key.nil?
          begin
            Base64.urlsafe_decode64(encoded_key)
          rescue ArgumentError
            encoded_key
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sym-2.3.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.2.1 lib/sym/app/private_key/base64_decoder.rb
sym-2.2.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.1.2 lib/sym/app/private_key/base64_decoder.rb
sym-2.1.1 lib/sym/app/private_key/base64_decoder.rb
sym-2.1.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.0.3 lib/sym/app/private_key/base64_decoder.rb
sym-2.0.2 lib/sym/app/private_key/base64_decoder.rb
sym-2.0.1 lib/sym/app/private_key/base64_decoder.rb
sym-2.0.0 lib/sym/app/private_key/base64_decoder.rb