Versions in this module Expand all Collapse all v0 v0.0.1 Nov 2, 2021 Changes in this version + func AesDecrypt(crypted, key []byte) ([]byte, error) + func AesEncrypt(origData, key []byte) ([]byte, error) + func CreateDir(fn string) error + func CreateFile(fn string) (*os.File, error) + func GetRandInt() int32 + func GetRandStr(n int) string + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte + func PasswordHash(pass string) string + func PasswordVerify(pass, hash string) bool + func SignMd5(s string) string + func SignSha1(str string) string + func StructListToMapByTag(tag string, v []interface{}) ([]map[string]interface{}, error) + func StructToMapByTag(tag string, v interface{}) (map[string]interface{}, error) + func UrlDecode(s string) string + func UrlEncode(s string) string