gcm

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyFromPassword

func CreateKeyFromPassword(password string) ([]byte, error)

func Decrypt

func Decrypt(cipherText, secretKey, aad []byte) ([]byte, error)

func DecryptFile

func DecryptFile(cipherTextFile, plainTextFile string, secretKey []byte) error

func DecryptFromString added in v0.0.3

func DecryptFromString(cipherText string, secretKey, aad []byte) ([]byte, error)

func DecryptFromStringToString added in v0.0.3

func DecryptFromStringToString(cipherText string, secretKey, aad []byte) (string, error)

func Encrypt

func Encrypt(plainText, secretKey, aad []byte) ([]byte, error)

func EncryptFile

func EncryptFile(plainTextFile, cipherTextFile string, secretKey []byte) error

func EncryptStringToString added in v0.0.3

func EncryptStringToString(plainText string, secretKey, aad []byte) (string, error)

func EncryptToString added in v0.0.3

func EncryptToString(plainText, secretKey, aad []byte) (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