encrypt

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptCBC

func AesDecryptCBC(encrypted []byte, key []byte) (decrypted []byte, err error)

func AesDecryptCFB

func AesDecryptCFB(encrypted []byte, key []byte) (decrypted []byte)

func AesDecryptECB

func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)

func AesEncryptCBC

func AesEncryptCBC(origData []byte, key []byte) (encrypted []byte)

=================== CBC ======================

func AesEncryptCFB

func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte)

=================== CFB ======================

func AesEncryptECB

func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)

=================== ECB ======================

func MakeMD5Str

func MakeMD5Str(val string) string

func PKCS7Padding added in v1.1.3

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

PKCS7 填充模式

func PKCS7UnPadding added in v1.1.3

func PKCS7UnPadding(origData []byte) ([]byte, error)

填充的反向操作,删除填充字符串

func SearchByteSliceIndex

func SearchByteSliceIndex(bSrc []byte, b byte) int

[]byte 字节切片 循环查找

Types

This section is empty.

Jump to

Keyboard shortcuts

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