util

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesEncrypt

func AesEncrypt(data, key []byte) []byte

func Debug added in v0.5.1

func Debug(req *http.Request) *http.Response

func DebugResp added in v0.5.1

func DebugResp(resp *http.Response)

func DecryptAES added in v0.6.0

func DecryptAES(key []byte, ct string) string

func EncodeParam

func EncodeParam(v url.Values) string

func FindCookie

func FindCookie(cookies []*http.Cookie, name string) *http.Cookie

Find special name cookie

func FindCookieValue added in v0.5.1

func FindCookieValue(cookies []*http.Cookie, name string) string

func GetReq added in v0.5.1

func GetReq(u string, params url.Values) (*http.Request, error)

func Key

func Key(key string) []byte

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func Random

func Random(v string) string

func RsaEncrypt

func RsaEncrypt(key []byte, data []byte) ([]byte, error)

func Sha1 added in v0.5.1

func Sha1(v, l string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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