crypt

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(crypted, key, iv []byte) ([]byte, error)

AESDecrypt AES 解密

func AESEncrypt

func AESEncrypt(plaintext, key, iv []byte) ([]byte, error)

AESEncrypt AES加密

func AesECBDecrypt

func AesECBDecrypt(ciphertext []byte, key []byte) []byte

func AesECBEncrypt

func AesECBEncrypt(plaintext []byte, key []byte) []byte

func CheckMd5Sign

func CheckMd5Sign(sign string, params map[string]string, apiKey string) bool

func MD5

func MD5(plainText []byte) string

MD5 MD5哈希加密, 返回32位字符串

func Md5Sign

func Md5Sign(params map[string]string, apiKey string) string

func Md5SignSms

func Md5SignSms(params map[string]string, apiKey string) string

for sms api md5 sign

func SHA1

func SHA1(plainText []byte) string

SHA1 SHA1哈希加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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