cryptoUtils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

*

  • @Author houlijx
  • @Description //TODO $
  • @Date 2021/4/20 下午4:33 *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(ciphertext []byte, keyStr, ivStr string) ([]byte, error)

AesDecrypt 解密函数

func AesDecryptFile

func AesDecryptFile(inputFile string, outputFile, keyStr, ivStr string) (bool, error)

func AesDecryptFilePKCS5

func AesDecryptFilePKCS5(inputFile string, outputFile, keyStr, ivStr string) (bool, error)

func AesDecryptPKCS5

func AesDecryptPKCS5(ciphertext []byte, keyStr, ivStr string) ([]byte, error)

AesDecrypt 解密函数

func AesEncrypt

func AesEncrypt(plaintext []byte, keyStr, ivStr string) ([]byte, error)

AesEncrypt 加密函数

func AesEncryptFile

func AesEncryptFile(inputFile string, outputFile, keyStr, ivStr string) (bool, error)

func AesEncryptFilePKCS5

func AesEncryptFilePKCS5(inputFile string, outputFile, keyStr, ivStr string) (bool, error)

func AesEncryptPKCS5

func AesEncryptPKCS5(plaintext []byte, keyStr, ivStr string) ([]byte, error)

AesEncrypt 加密函数

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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