Sha256: 1c7e5a9276cc5f497a432e9aed89c2556adb076f6af87537bb9db52d87bb12f3

Contents?: true

Size: 348 Bytes

Versions: 18

Compression:

Stored size: 348 Bytes

Contents

require 'base64'
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

18 entries across 18 versions & 1 rubygems

Version Path
sym-3.0.2 lib/sym/app/private_key/base64_decoder.rb
sym-3.0.1 lib/sym/app/private_key/base64_decoder.rb
sym-3.0.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.10.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.8.5 lib/sym/app/private_key/base64_decoder.rb
sym-2.8.4 lib/sym/app/private_key/base64_decoder.rb
sym-2.8.2 lib/sym/app/private_key/base64_decoder.rb
sym-2.8.1 lib/sym/app/private_key/base64_decoder.rb
sym-2.8.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.7.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.6.3 lib/sym/app/private_key/base64_decoder.rb
sym-2.6.2 lib/sym/app/private_key/base64_decoder.rb
sym-2.6.1 lib/sym/app/private_key/base64_decoder.rb
sym-2.6.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.5.3 lib/sym/app/private_key/base64_decoder.rb
sym-2.5.1 lib/sym/app/private_key/base64_decoder.rb
sym-2.5.0 lib/sym/app/private_key/base64_decoder.rb
sym-2.4.3 lib/sym/app/private_key/base64_decoder.rb