crypto

package
v0.0.0-...-73eff08 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESPKCS7Decode

func AESPKCS7Decode(encodedString string, key, iv []byte) ([]byte, error)

AESPKCS7Decode AES-PKCS7解密

func AESPKCS7Encode

func AESPKCS7Encode(originBytes, key, iv []byte) (string, error)

AESPKCS7Encode AES-PKCS7加密

func Base64Decode

func Base64Decode(plantText string) ([]byte, error)

Base64Decode 解Base64字符串(尝试4种方式)

func FileMD5

func FileMD5(fullPath string, upper bool) (string, error)

FileMD5 计算文件MD5

func MD5

func MD5(input []byte, upper bool) string

MD5 计算数据MD5

func Unzip

func Unzip(zipFile, destDir string) error

Unzip 解压缩文件到文件夹

func Zip

func Zip(srcFileOrDir, destZipFile string) error

Zip 压缩文件/文件夹

Types

This section is empty.

Jump to

Keyboard shortcuts

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