tyutils

package
v0.0.0-...-7d6d8e9 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data, key []byte, decryptModel string) ([]byte, error)

func EcbDecrypt

func EcbDecrypt(data, key []byte) ([]byte, error)

func EcbEncrypt

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

func Exists

func Exists(path string) bool

判断所给路径文件/文件夹是否存在

func GcmDecrypt

func GcmDecrypt(data, key []byte) ([]byte, error)

func IsDir

func IsDir(path string) bool

判断所给路径是否为文件夹

func IsFile

func IsFile(path string) bool

判断所给路径是否为文件

func Mkdir

func Mkdir(path string) error

func PKCS5Padding

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

func PKCS5Unpadding

func PKCS5Unpadding(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