utils

package
v0.0.0-...-476510a Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesECBDecrypt

func AesECBDecrypt(data, key []byte) ([]byte, error)

AES/ECB/PKCS7模式解密--签名解密方式

func AesECBEncrypt

func AesECBEncrypt(data, key []byte) ([]byte, error)

AES/ECB/PKCS7模式加密--签名加密方式

func GeneMD5

func GeneMD5(str string) string

func NewECBDecryptEr

func NewECBDecryptEr(b cipher.Block) cipher.BlockMode

func NewECBEncryptEr

func NewECBEncryptEr(b cipher.Block) cipher.BlockMode

func PKCS7Padding

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

PKCS7加填充/和PKCS5填充一样,只是填充字段多少的区别

func PKCS7UnPadding

func PKCS7UnPadding(encrypt []byte) []byte

PKCS7解填充/和PKCS5填充一样,只是填充字段多少的区别

func RandStr

func RandStr(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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