Documentation ¶
Index ¶
- func AesDecrypt(cipherText []byte, key []byte) ([]byte, error)
- func AesEncrypt(content []byte, key []byte) ([]byte, error)
- func CstZone() *time.Location
- func DecryptString(cipherText, key string) (string, error)
- func DownloadFile(urlStr string, timeout time.Duration, filename string) error
- func EncryptString(content, key string) (string, error)
- func FileExists(path string) (isExist bool, isDir bool)
- func IP2Long(ipStr string) uint32
- func IPInRange(ip net.IP, ipRangeList []string) bool
- func MD5(txt string) string
- func Rand(min, max int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶ added in v0.2.0
aes_256_cbc decrypt
func AesEncrypt ¶ added in v0.2.0
aes_256_cbc encrypt
func DecryptString ¶ added in v0.2.0
decrypt (aes_256_cbc) for url safe
func EncryptString ¶ added in v0.2.0
encrypt (aes_256_cbc) for url safe
func FileExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.