crypto_util

package
v0.0.0-...-0cd63e0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IV = "00112233445566778899aabbccddeeff"
)

Variables

This section is empty.

Functions

func DecryptAES256CBC

func DecryptAES256CBC(ciphertext, key, iv []byte) ([]byte, error)

Decrypt function using AES-CBC

func DecryptAESGCM

func DecryptAESGCM(cipherTextBase64 string, key []byte) ([]byte, error)

Decrypt function using AES-GCM

func EncryptAESGCM

func EncryptAESGCM(plainText, key []byte) ([]byte, error)

Encrypt function using AES-GCM

func GenerateKey

func GenerateKey(seed string) []byte

Give key

Types

This section is empty.

Jump to

Keyboard shortcuts

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