Module: GraphQL::Schema::Base64Encoder Private

Defined in:
lib/graphql/schema/base_64_encoder.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.decode(ciphertext, nonce: false) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


10
11
12
# File 'lib/graphql/schema/base_64_encoder.rb', line 10

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

.encode(plaintext, nonce: false) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


6
7
8
# File 'lib/graphql/schema/base_64_encoder.rb', line 6

def self.encode(plaintext, nonce: false)
  Base64.strict_encode64(plaintext)
end