utils

package
v0.0.0-...-e08b482 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key []byte) ([]byte, error)

AesDecrypt AES解密

func AesEncrypt

func AesEncrypt(origData, key []byte) ([]byte, error)

AesEncrypt AES加密

func Base64Decode

func Base64Decode(s string) ([]byte, error)

Base64Decode Base64解码

func Base64Encode

func Base64Encode(data []byte) string

Base64Encode Base64编码

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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