cryp

package
v0.0.0-...-da2935b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDncrypt

func AesCBCDncrypt(encryptData, key []byte) ([]byte, error)

解密

func AesCBCEncrypt

func AesCBCEncrypt(rawData, key []byte) ([]byte, error)

aes加密,填充祕鑰key的16位,24,32分別對應AES-128, AES-192, or AES-256.

func Dncrypt

func Dncrypt(rawData string, key []byte) (string, error)

func Encrypt

func Encrypt(rawData, key []byte) (string, error)

func Md5

func Md5(str string) string

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

func Sha1

func Sha1(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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