module GraphQL::Schema::Base64Encoder

@api private

Public Class Methods

decode(ciphertext, nonce: false) click to toggle source
# File lib/graphql/schema/base_64_encoder.rb, line 9
def self.decode(ciphertext, nonce: false)
  Base64.decode64(ciphertext)
end
encode(plaintext, nonce: false) click to toggle source
# File lib/graphql/schema/base_64_encoder.rb, line 5
def self.encode(plaintext, nonce: false)
  Base64.strict_encode64(plaintext)
end