Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
graphql / lib / graphql / schema / base_64_encoder.rb
Size: Mime:
# 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