Documentation ¶
Overview ¶
Package utils Copyright: Copyright (c) 2020<br> Company: 易宝支付(YeePay)<br> @author : yunmei.wu @time : 2023/3/15 2:22 PM
Package utils Copyright: Copyright (c) 2020<br> Company: 易宝支付(YeePay)<br> @author : yunmei.wu @time : 2023/3/20 4:15 PM
Package utils Copyright: Copyright (c) 2020<br> Company: 易宝支付(YeePay)<br> @author : yunmei.wu @time : 2023/3/29 9:56 AM
Package utils Copyright: Copyright (c) 2020<br> Company: 易宝支付(YeePay)<br> @author : yunmei.wu @time : 2023/3/14 10:23 AM
Index ¶
- func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)
- func DecryptCallback(platformPubKey string, isvPriKey string, callBack string) (string, error)
- func EncodeParameters(params map[string][]string, forSign bool) string
- func FormatPemKey(yopFormKey string, pemHeader string) string
- func GetCanonicalQueryString(params map[string][]string) string
- func Normalize(value string) string
- func NormalizePath(path string) string
- func ParsePrivateKey(privateKey string) (any, error)
- func ParsePublicKey(publicKey string) (*rsa.PublicKey, error)
- func ParseToJsonStr(params map[string]any) string
- func RsaDecrypt(priKey string, cipher string) ([]byte, error)
- func RsaSignBase64(content string, privateKey string, hash crypto.Hash) (string, error)
- func Sign(content string, privateKey string, hash crypto.Hash) ([]byte, error)
- func UsePayloadForQueryParameters(yopRequest request.YopRequest) bool
- func Verify(content []byte, signature []byte, pub *rsa.PublicKey, hash crypto.Hash) bool
- func VerifySign(content string, signature string, pubKey string, hash crypto.Hash) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptECB ¶
func DecryptCallback ¶
DecryptCallback 解密回调通知内容
func GetCanonicalQueryString ¶
func NormalizePath ¶
func ParsePrivateKey ¶
func ParseToJsonStr ¶
func RsaSignBase64 ¶
RsaSignBase64 base64UrlEncode签名
func UsePayloadForQueryParameters ¶
func UsePayloadForQueryParameters(yopRequest request.YopRequest) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.