aesEncrypt

package
v0.0.0-...-3b40389 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCbcDecrypt_Base64Str

func AesCbcDecrypt_Base64Str(cipherText_Base64 string, secretKey string) (plainText string, err error)

AesCbcDecrypt_Base64Str AES CBC decrypt

func AesCbcDecrypt_Bytes

func AesCbcDecrypt_Bytes(cipherText []byte, key []byte) (plainText []byte, err error)

AesCbcDecrypt_Bytes AES CBC decrypt

func AesCbcDecrypt_HexStr

func AesCbcDecrypt_HexStr(cipherText_Hex string, secretKey string) (plainText string, err error)

AesCbcDecrypt_HexStr AES CBC decrypt

func AesCbcEncrypt_Base64Str

func AesCbcEncrypt_Base64Str(plainText string, secretKey string) (cipherText_Base64 string, err error)

AesCbcEncrypt_Base64Str AES CBC encrypt

func AesCbcEncrypt_Bytes

func AesCbcEncrypt_Bytes(plainText []byte, key []byte) (cipherText []byte, err error)

AesCbcEncrypt_Bytes AES CBC encrypt

func AesCbcEncrypt_HexStr

func AesCbcEncrypt_HexStr(plainText string, secretKey string) (cipherText_Hex string, err error)

AesCbcEncrypt_HexStr AES CBC encrypt

func PKCS7Padding

func PKCS7Padding(origData []byte, blockSize int) []byte

PKCS7Padding 填充

func PKCS7UnPadding

func PKCS7UnPadding(src []byte) (dest []byte, err error)

PKCS7UnPadding 填充的反向操作

Types

This section is empty.

Jump to

Keyboard shortcuts

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