Documentation
¶
Overview ¶
*
- @Author houlijx
- @Description //TODO $
- @Date 2021/4/20 下午4:33 *
Index ¶
- func AesDecrypt(ciphertext []byte, keyStr, ivStr string) ([]byte, error)
- func AesDecryptFile(inputFile string, outputFile, keyStr, ivStr string) (bool, error)
- func AesDecryptFilePKCS5(inputFile string, outputFile, keyStr, ivStr string) (bool, error)
- func AesDecryptPKCS5(ciphertext []byte, keyStr, ivStr string) ([]byte, error)
- func AesEncrypt(plaintext []byte, keyStr, ivStr string) ([]byte, error)
- func AesEncryptFile(inputFile string, outputFile, keyStr, ivStr string) (bool, error)
- func AesEncryptFilePKCS5(inputFile string, outputFile, keyStr, ivStr string) (bool, error)
- func AesEncryptPKCS5(plaintext []byte, keyStr, ivStr string) ([]byte, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
AesDecrypt 解密函数
func AesDecryptFile ¶
func AesDecryptFilePKCS5 ¶
func AesDecryptPKCS5 ¶
AesDecrypt 解密函数
func AesEncrypt ¶
AesEncrypt 加密函数
func AesEncryptFile ¶
func AesEncryptFilePKCS5 ¶
func AesEncryptPKCS5 ¶
AesEncrypt 加密函数
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.