crypto

package
v0.19.15 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 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 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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