encrypt

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt added in v0.15.0

func AESDecrypt(key string, decodeString string) string

AESDecrypt AES解密

func AESEncrypt added in v0.15.0

func AESEncrypt(key string, plaintext string) string

AESEncrypt AES加密

func AesDecryptByECB added in v0.15.0

func AesDecryptByECB(data, key string) string

解密

func AesEncryptByECB added in v0.15.0

func AesEncryptByECB(data, key string) string

加密

func DESDecrypt added in v0.15.0

func DESDecrypt(cipherText string, key string) string

解密函数

func DESEncrypt added in v0.15.0

func DESEncrypt(plainText string, key string) string

加密函数

func Md5

func Md5(str string) string

Md5 对字符串做MD5加密(32位) str:要加密的字符串 return:加密后的字符串

func PKCS7Padding added in v0.15.0

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

补码

func PKCS7UNPadding added in v0.15.0

func PKCS7UNPadding(originDataByte []byte) []byte

解码

func Sha1 added in v0.15.0

func Sha1(str 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