Documentation
¶
Index ¶
- func AesDecryptCBC(block cipher.Block, cipherText, iv []byte) ([]byte, error)
- func AesDecryptECB(block cipher.Block, cipherBytes []byte) ([]byte, error)
- func AesEncryptCBC(block cipher.Block, plaintext, iv []byte) []byte
- func AesEncryptECB(block cipher.Block, plaintext []byte) []byte
- func Anonymous(deviceId string) (string, error)
- func CacheKeyDecrypt(data string) (string, error)
- func CacheKeyEncrypt(data string) (string, error)
- func DLLEncodeID(someID string) (string, error)
- func EApiDecrypt(ciphertext, encode string) ([]byte, error)
- func EApiEncrypt(url string, object interface{}) (map[string]string, error)
- func GenerateWNMCID() string
- func HexDigest(text string) string
- func LinuxApiDecrypt(cipherText string) ([]byte, error)
- func LinuxApiEncrypt(object interface{}) (map[string]string, error)
- func Pkcs7Padding(data []byte, blockSize int) ([]byte, error)
- func Pkcs7UnPadding(data []byte) ([]byte, error)
- func RsaEncrypt(ciphertext, key string) (string, error)
- func WeApiDecrypt(params, encSecKey string) (map[string]string, error)
- func WeApiEncrypt(object interface{}) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptCBC ¶ added in v0.2.0
AesDecryptCBC 解密
func AesDecryptECB ¶ added in v0.2.0
AesDecryptECB 解密
func AesEncryptCBC ¶ added in v0.2.0
AesEncryptCBC 加密
func AesEncryptECB ¶ added in v0.2.0
AesEncryptECB 加密
func CacheKeyDecrypt ¶ added in v0.1.0
CacheKeyDecrypt 解密缓存 key
func CacheKeyEncrypt ¶ added in v0.1.0
CacheKeyEncrypt 生成缓存 key
func DLLEncodeID ¶ added in v0.1.4
func EApiDecrypt ¶
EApiDecrypt 解密,当解析请求参数是encode使用hex,当解析请求响应参数为空相当于二进制
func EApiEncrypt ¶
EApiEncrypt 加密 通常在MAC、windows、android、ios中使用 todo: 貌似当url为空时存在问题,网易接口加密返回中有不带url的情况, 例如: DCC52B3013E9B66C038F8E027E580ECEDF84E0F44CB93FC365BED7B646A9BC08
func GenerateWNMCID ¶ added in v0.1.4
func GenerateWNMCID() string
GenerateWNMCID 生成WNMCID 生成规则: 6位随机小写字母 + 当前时间戳(毫秒) + 默认抓取版本号 + 0 例如: "abcdef.1633557080686.01.0" 作用: 貌似是网易云音乐的抓取标识,或者用于爬虫标识等作用
func LinuxApiEncrypt ¶
LinuxApiEncrypt 加密
func Pkcs7Padding ¶ added in v0.2.0
Pkcs7Padding 补码,严格遵循 RFC 5652 规范
func Pkcs7UnPadding ¶ added in v0.2.0
Pkcs7UnPadding 去码
func RsaEncrypt ¶ added in v0.2.0
RsaEncrypt 公钥加密无填充方式
func WeApiDecrypt ¶
WeApiDecrypt 解密 TODO: 由于拿不到私钥则不能解密
func WeApiEncrypt ¶
WeApiEncrypt 加密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.