util

package
v0.0.0-...-0f594a8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDataTooSmall = errors.New("data too small")
)
View Source
var ErrInvalidAccountFormat = errors.New("invalid account format")

Functions

func Decrypt

func Decrypt(b []byte) ([]byte, error)

func Encrypt

func Encrypt(b []byte) ([]byte, error)

func SplitAccount

func SplitAccount(act string) (string, string, error)

SplitAccount splits a federated account into a username and domain.

func ValidateDomainObfuscation

func ValidateDomainObfuscation(domain, obfuscationDomain string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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