crypto

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 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,当解析请求响应参数时则为空相当于二进制

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