hm

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncorrectKey   = fmt.Errorf("Key is incorrect")
	ErrIncorrectNonce = fmt.Errorf("Nonce is incorrect")
)

Functions

func EncryptFloat

func EncryptFloat(x float64, key *[32]byte) float64

key must not be nil key[0:4] != []byte{0,0,0,0}

func EncryptInt

func EncryptInt(x int64, key *[32]byte) int64

key must not be nil key[0:4] != []byte{0,0,0,0}

func EncryptString

func EncryptString(in string, key *[32]byte, nonce *[12]byte) (out []byte)

panic on empty key or nonce

Types

This section is empty.

Jump to

Keyboard shortcuts

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