crypto

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheKeyDecrypt added in v0.1.0

func CacheKeyDecrypt(data string) (string, error)

CacheKeyDecrypt 解密缓存 key

func CacheKeyEncrypt added in v0.1.0

func CacheKeyEncrypt(data string) (string, error)

CacheKeyEncrypt 生成缓存 key

func EApiDecrypt

func EApiDecrypt(ciphertext, encode string) ([]byte, error)

EApiDecrypt 解密,当解析请求参数是encode使用hex,当解析请求响应参数为空相当于二进制

func EApiEncrypt

func EApiEncrypt(url string, object interface{}) (map[string]string, error)

EApiEncrypt 加密 通常在MAC、windows、android、ios中使用

func LinuxApiDecrypt

func LinuxApiDecrypt(cipherText string) ([]byte, error)

LinuxApiDecrypt 解密

func LinuxApiEncrypt

func LinuxApiEncrypt(object interface{}) (map[string]string, error)

LinuxApiEncrypt 加密

func WeApiDecrypt

func WeApiDecrypt(params, encSecKey string) (map[string]string, error)

WeApiDecrypt 解密 TODO: 由于拿不到私钥则不能解密

func WeApiEncrypt

func WeApiEncrypt(object interface{}) (map[string]string, error)

WeApiEncrypt 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL