crypto

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertextAndNounce []byte, keyBase64 string) (data []byte, err error)

func Encrypt

func Encrypt(data []byte, keyBase64 string) (ciphertext []byte, err error)

func GenKey

func GenKey() string

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