security

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt GCM-AES256 ...

func Encrypt

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

Encrypt GCM-AES256 ...

func Hash

func Hash(salt string, data []byte) (sum []byte)

Hash HMAC-SHA512/256

func NewKey256

func NewKey256() [32]byte

NewKey256 ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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