crypt

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPTY_PARAMS errors.CodeError = iota + errors.MIN_PKG_Crypt
	HEXA_DECODE
	HEXA_KEY
	HEXA_NONCE
	BYTE_KEYGEN
	BYTE_NONCEGEN
	AES_BLOCK
	AES_GCM
	AES_DECRYPT
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(hexaVal string) ([]byte, Error)

func Encrypt

func Encrypt(clearValue []byte) (string, Error)

func GenKeyByte

func GenKeyByte() ([]byte, []byte, Error)

func IsCodeError

func IsCodeError() bool

func SetKeyByte

func SetKeyByte(key [32]byte, nonce [12]byte)

func SetKeyHex

func SetKeyHex(key, nonce string) Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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