utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptPKCS1v15

func DecryptPKCS1v15(key *rsa.PrivateKey, encrypted []byte) ([]byte, error)

私钥解密

func EncryptPKCS1v15

func EncryptPKCS1v15(key *rsa.PublicKey, data []byte) ([]byte, error)

公钥加密

func SendAndGetHttpResponse

func SendAndGetHttpResponse[T any](url string, request any) (result T, err error)

SendAndGetHttpResponse 向 url 发送 request 的 POST 请求, 并解析服务端的 JSON 响应为 result

func SplitSlice

func SplitSlice(buf []byte, lim int) [][]byte

...

Types

This section is empty.

Jump to

Keyboard shortcuts

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