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.8.6 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.5 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.4 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.3 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.2 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.1 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0.pre11 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0.pre10 lib/graphql/schema/base_64_encoder.rb
graphql-1.7.14 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0.pre9 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0.pre8 lib/graphql/schema/base_64_encoder.rb
graphql-1.7.13 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0.pre7 lib/graphql/schema/base_64_encoder.rb
graphql-1.7.12 lib/graphql/schema/base_64_encoder.rb
graphql-1.7.11 lib/graphql/schema/base_64_encoder.rb
graphql-1.7.10 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0.pre6 lib/graphql/schema/base_64_encoder.rb
graphql-1.8.0.pre5 lib/graphql/schema/base_64_encoder.rb
graphql-1.7.9 lib/graphql/schema/base_64_encoder.rb