toolx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 16 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)

AES解密

func AesEncrypt

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

AES加密

func CreateDir

func CreateDir(fn string) error

func CreateFile

func CreateFile(fn string) (*os.File, error)

func GetRandInt

func GetRandInt() int32

func GetRandStr

func GetRandStr(n int) string

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

func PasswordHash

func PasswordHash(pass string) string

func PasswordVerify

func PasswordVerify(pass, hash string) bool

func SignMd5

func SignMd5(s string) string

func SignSha1

func SignSha1(str string) string

func StructListToMapByTag

func StructListToMapByTag(tag string, v []interface{}) ([]map[string]interface{}, error)

func StructToMapByTag

func StructToMapByTag(tag string, v interface{}) (map[string]interface{}, error)

func UrlDecode

func UrlDecode(s string) string

func UrlEncode

func UrlEncode(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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