Documentation ¶
Overview ¶
加密工具类,用了3des和base64
Index ¶
- func AesBase64Decrypt(origData string, key []byte) string
- func AesBase64Encrypt(origData string, key []byte) string
- func AesDecrypt(decodeStr string, key []byte) ([]byte, error)
- func AesEncrypt(encodeStr string, key []byte) (string, error)
- func DesBase64Decrypt(crypted []byte) []byte
- func DesBase64Encrypt(origData []byte) []byte
- func GoDownload(strs []string)
- func Grep(url, rule string) (strs [][]string)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func ReUploading(key, url string) (res []string)
- func RefreshDirsOrUrls(isUrl bool, urls ...string) (result cdn.RefreshResp, err error)
- func SpyContent()
- func TripleDesDecrypt(crypted, key []byte) ([]byte, error)
- func TripleDesEncrypt(origData, key []byte) ([]byte, error)
- func Uploading(key, url string) (res string)
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
- type PutRet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesBase64Decrypt ¶
func AesBase64Encrypt ¶
func DesBase64Decrypt ¶
func GoDownload ¶
func GoDownload(strs []string)
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RefreshDirsOrUrls ¶
func RefreshDirsOrUrls(isUrl bool, urls ...string) (result cdn.RefreshResp, err error)
刷新
func SpyContent ¶
func SpyContent()
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.