Documentation
¶
Index ¶
- func Base64Decode(src string) ([]byte, error)
- func Base64Encode(src []byte) string
- func Base64URLDecode(src string) ([]byte, error)
- func Base64URLEncode(src []byte) string
- func Decrypt(data, key []byte) ([]byte, error)
- func Encrypt(data, key []byte) ([]byte, error)
- func GetMD5Content(content string) string
- func GetMD5Content2(content []byte) string
- func Md5(data []byte) []byte
- func Md5Str(data []byte) string
- func RandBytes(c int) ([]byte, error)
- func RandInt63(max int64) int64
- func RandNumStr(l int) string
- func SaltPassword(password string) []byte
- func SaltPassword2(password string) []byte
- func SimpleGuid() string
- func VerifyPassword(stored []byte, password string) bool
- func VerifyPassword2(stored []byte, password string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func Base64URLDecode ¶
func Base64URLEncode ¶
func GetMD5Content ¶
func GetMD5Content2 ¶
func RandNumStr ¶
func SaltPassword ¶
func SaltPassword2 ¶
func SimpleGuid ¶
func SimpleGuid() string
func VerifyPassword ¶
func VerifyPassword2 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.