encryption

package module
v0.0.0-...-8431d10 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(n int) *[32]byte

func GenerateRandomString

func GenerateRandomString(s int) (*[32]byte, string)

GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.

func Generateid

func Generateid() string

func MessageDecrypt

func MessageDecrypt(ciphertext []byte, key *[32]byte) (plaintext []byte, err error)

func MessageEncrypt

func MessageEncrypt(plaintext []byte, key *[32]byte) (ciphertext string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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