encoding

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(encoded string) t.Result[[]byte]

Decode Standard decoding for Paseto is URL safe base64 with no padding

func Encode

func Encode(bytes []byte) string

Encode Standard encoding for Paseto is URL safe base64 with no padding

func HexDecode added in v1.4.0

func HexDecode(encoded string) t.Result[[]byte]

Decode hex

func HexEncode added in v1.4.0

func HexEncode(bytes []byte) string

Encode hex

func Pae

func Pae(pieces ...[]byte) []byte

Pae Pre Auth Encode

Types

This section is empty.

Jump to

Keyboard shortcuts

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