encryption

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package encryption provides AES encryption and decryption utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIV

func GenerateIV() []byte

GenerateIV generates a random 16-byte initialization vector.

func GetAESDecrypted

func GetAESDecrypted(input []byte, key []byte, initializationVector []byte) ([]byte, error)

GetAESDecrypted decrypts input using AES-CBC with the provided key and IV.

func GetAESEncrypted

func GetAESEncrypted(input []byte, key []byte, initializationVector []byte) ([]byte, error)

GetAESEncrypted encrypts input using AES-CBC with the provided key and IV.

Types

This section is empty.

Jump to

Keyboard shortcuts

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