Documentation ¶
Index ¶
- func Base64Decode(str string) string
- func Base64Encode(str string) string
- func CertFormat(key string, isPub bool) (cert string, err error)
- func DeStr(pass string, key string) string
- func EnStr(pass string, key string) string
- func GetExpireTime(sec int) string
- func GetSn() string
- func GetTime10() string
- func GetTime10Int() int
- func GetTime13() string
- func GetTime13Int() int64
- func GzipCompress(s string) (r string, err error)
- func GzipCompressByte(b []byte) (r string, err error)
- func GzipUnCompress(s string) (result []byte, err error)
- func GzipUnCompressByte(s []byte) (result []byte, err error)
- func Md5Byte(b []byte) (m []byte)
- func Md5Lower(str string) string
- func Md5Upper(str string) string
- func MdDecode(str string, key string, expSec int) string
- func MdEncode(str string, key string, expSec int) string
- func MdXor(str, key string) string
- func MtRand(min, max int) int
- func RandStr(k string, n int) string
- func Rsa2Private(str string, key string, encode bool) (rs string, e error)
- func Rsa2Public(str string, key string, encode bool) (rs string, e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GzipCompressByte ¶
GzipCompressByte GZIP压缩字符串 OK
func GzipUnCompress ¶
GzipUnCompress GZIP解压缩字符串 OK
func GzipUnCompressByte ¶
GzipUnCompressByte GZIP解压缩字符串 OK
func Rsa2Private ¶
Rsa2Private RSA2私钥加解密 OK
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.