crypto

package
v0.0.0-...-d49a103 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EApiDecrypt

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

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

func EApiEncrypt

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

EApiEncrypt 加密 目前所知在PC中有使用,MAC中。windows未知 - params

func LinuxApiDecrypt

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

LinuxApiDecrypt 解密

func LinuxApiEncrypt

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

LinuxApiEncrypt 加密 - eparams

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