Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandInt ¶
func GetRandInt() int32
func GetRandStr ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func PasswordHash ¶
func PasswordVerify ¶
func StructListToMapByTag ¶
func StructToMapByTag ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.