crypto

package
v0.18.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertextAndNounce []byte, keyBase64 log.RedactedString) (data []byte, err error)

func Encrypt

func Encrypt(data []byte, keyBase64 log.RedactedString) (ciphertext []byte, err error)

func GenRandBase32String

func GenRandBase32String(length int) string

func GenToken

func GenToken() (token string, err error)

func SimpleHash

func SimpleHash(text string) (out string)

func SimpleHashB

func SimpleHashB(text []byte) (out string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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