base64url

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeString

func DecodeString(s string) ([]byte, error)

DecodeString returns the bytes represented by the base64url encoded string s. It recovers the characters that were not URL safe (+, /, =) and uses the standard base64 encoding.

func EncodeToString

func EncodeToString(src []byte) string

EncodeToString returns the base64url encoding of src. It uses the standard base64 encoding and replaces the characters that are not URL safe (+, /, =).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL