Versions in this module Expand all Collapse all v0 v0.0.5 Jan 23, 2026 v0.0.4 Dec 1, 2025 Changes in this version + func CBCDecrypt(encryptedData, key []byte) (decryptedData []byte, err error) + func CBCEncrypt(origData, key []byte) (crypted []byte, err error) + func ECBDecrypt(encryptedData, key []byte) (origData []byte, err error) + func ECBDecryptEx(encryptedData, key []byte, paddingType PaddingType) (origData []byte, err error) + func ECBEncrypt(origData, key []byte) (encryptedData []byte, err error) + func ECBEncryptEx(origData, key []byte, paddingType PaddingType) (encryptedData []byte, err error) + func NewECBDecrypter(b cipher.Block) cipher.BlockMode + func NewECBEncryptor(b cipher.Block) cipher.BlockMode + func PKCS5Padding(plaintext []byte) []byte + func PKCS5UnPadding(origData []byte) ([]byte, error) + func PKCS7Padding(plaintext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) ([]byte, error) + func PKCSUnPadding(origData []byte) ([]byte, error) + type PaddingType int + const PaddingTypeNone + const PaddingTypePKCS5 + const PaddingTypePKCS7