aes

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherText string, key string, mode string, opt ...Option) (plainText string, err error)

func Encrypt

func Encrypt(plainText string, key string, mode string, opt ...Option) (cipherText string, err error)

mode: cbc/pkcs7

Types

type Option

type Option func(*options)

func WithBlockSize added in v0.1.3

func WithBlockSize(size int) Option

func WithIV added in v0.1.3

func WithIV(iv []byte) Option

Jump to

Keyboard shortcuts

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