encryption

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChaChaDecryptBase64String

func ChaChaDecryptBase64String(key string, encrypted string) (result string)

func ChaChaDecryptBytes

func ChaChaDecryptBytes(key string, encrypted_bytes []byte) (result []byte)

func ChaChaDecryptFile

func ChaChaDecryptFile(key string, file_path string) error

func ChaChaEncryptBytes

func ChaChaEncryptBytes(key string, plain_text_bytes []byte) (result []byte)

func ChaChaEncryptFile

func ChaChaEncryptFile(key string, file_path string) error

func ChaChaEncryptString

func ChaChaEncryptString(key string, plain_text string) (result string)

func ChaChaGenerateKey

func ChaChaGenerateKey(password string) (key [32]byte)

func GenerateRandomString

func GenerateRandomString(byte_length int) (result string)

func SecretBoxDecrypt

func SecretBoxDecrypt(key string, encrypted string) (result string)

func SecretBoxEncrypt

func SecretBoxEncrypt(key string, plain_text string) (result string)

func SecretBoxGenerateKey

func SecretBoxGenerateKey(password string) (key [32]byte)

func SecretBoxGenerateRandomKey

func SecretBoxGenerateRandomKey() (key [32]byte)

func TestSecretBoxEncryptAndDecrypt

func TestSecretBoxEncryptAndDecrypt()

func TestSecretBoxKeyGeneration

func TestSecretBoxKeyGeneration()

func Test_ChaChaEncryptDecrypt

func Test_ChaChaEncryptDecrypt()

Types

This section is empty.

Jump to

Keyboard shortcuts

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