Sha256: b61a8c1efecc7cb8a878d5d6923e0acd06c6f506a36c7a9ff6ab1407556e3f7a
Contents?: true
Size: 420 Bytes
Versions: 4
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true require 'graphql/schema/base_64_bp' 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) # urlsafe_decode64 is for forward compatibility Base64Bp.urlsafe_decode64(ciphertext) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems