encrypt

package
v0.0.0-...-82269be Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCbcPkcs5Decrypt

func AesCbcPkcs5Decrypt(cipherData string, keyStr string) (plainText string, err error)

AES/CBC/PKCS5模式解密

func AesCbcPkcs5Encrypt

func AesCbcPkcs5Encrypt(originData string, keyStr string) (encryptText string, err error)

AES/CBC/PKCS5模式加密

func HmacSHA1

func HmacSHA1(plainText string, key string) string

HMAC-SHA1算法

func MD5

func MD5(plainText string) string

MD5算法

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(cipherText []byte) []byte

func SHA1

func SHA1(plainText string) string

SHA1算法

Types

This section is empty.

Jump to

Keyboard shortcuts

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