crypt

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamsEmpty errors.CodeError = iota + errors.MinPkgCrypt
	ErrorHexaDecode
	ErrorHexaKey
	ErrorHexaNonce
	ErrorByteKeygen
	ErrorByteNonceGen
	ErrorAESBlock
	ErrorAESGCM
	ErrorAESDecrypt
)

Variables

This section is empty.

Functions

func Decrypt

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

func Encrypt

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

func GenKeyByte

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

func IsCodeError

func IsCodeError() bool

func SetKeyByte

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

func SetKeyHex

func SetKeyHex(key, nonce string) errors.Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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