Sha256: 685d7a4573f0c80df4f86aa7eea935a7cd2cbf333d900d5cb8ec287901dcfb10

Contents?: true

Size: 316 Bytes

Versions: 56

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  class Schema
    # @api private
    module Base64Encoder
      def self.encode(plaintext, nonce: false)
        Base64.strict_encode64(plaintext)
      end

      def self.decode(ciphertext, nonce: false)
        Base64.decode64(ciphertext)
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
graphql-1.6.2 lib/graphql/schema/base_64_encoder.rb
graphql-1.6.1 lib/graphql/schema/base_64_encoder.rb
graphql-1.6.0 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.14 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.13 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.7.1 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.12 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.11 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.10 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.9 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.8 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.7 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.6 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.5 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.4 lib/graphql/schema/base_64_encoder.rb
graphql-1.5.3 lib/graphql/schema/base_64_encoder.rb