utils

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesEcbDecrypt

func AesEcbDecrypt(data, key []byte) []byte

AesEcbDecrypt 解密

func AesEcbEncrypt

func AesEcbEncrypt(data, key []byte) []byte

AesEcbEncrypt 加密

func AesEcbPKCS7Decrypt

func AesEcbPKCS7Decrypt(data, key []byte) []byte

AesEcbPKCS7Decrypt 解密

func AesEcbPKCS7Encrypt

func AesEcbPKCS7Encrypt(data, key []byte) []byte

AesEcbPKCS7Encrypt 加密

func AesSha1PRNG

func AesSha1PRNG(keyBytes []byte, encryptLength int) ([]byte, error)

AesSha1PRNG aes_sha1_prng加密

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

func SHA1

func SHA1(data []byte) []byte

SHA1 SHA1加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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