aes_cbc

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

func Encrypt

func Encrypt(textBytes []byte) ([]byte, error)

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func Reset

func Reset(newKey, newIv string)

Types

type AesCbc

type AesCbc struct {
	// contains filtered or unexported fields
}

func New

func New() *AesCbc

func NewAesCbc

func NewAesCbc(key_, iv_ string) *AesCbc

func (*AesCbc) Decrypt

func (ac *AesCbc) Decrypt(cipherText []byte) ([]byte, error)

func (*AesCbc) Encrypt

func (ac *AesCbc) Encrypt(textBytes []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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