util

package
v0.0.0-...-9d05754 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(ciphertext []byte, key, iv []byte) ([]byte, error)

func AesCBCEncrypt

func AesCBCEncrypt(plaintext []byte, key, iv []byte) ([]byte, error)

func GetUUID

func GetUUID() string

func IsDir

func IsDir(dirPath string) bool

目录是否存在

func IsPathExist

func IsPathExist(path string) bool

文件或目录是否存在

func PKCS7Padding

func PKCS7Padding(plaintext []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