Documentation ¶
Overview ¶
Package crypto md5、hash1、hash256、hash512签名
Index ¶
- func HMacSign(key string, original string, f func() hash.Hash) string
- func Hash1Sign(original []byte) string
- func Hash256Sign(original []byte) string
- func Hash512Sign(original []byte) string
- func Md5Sign(original []byte) string
- func RsaSign(rsaPriKey string, data string, header bool) (r []byte, err error)
- func RsaSignToBase64(rsaPriKey string, data string, header bool) (r string, err error)
- func RsaVerify(rsaPubKey string, data string, signData []byte, header bool) (err error)
- func RsaVerifyForBase64(rsaPubKey string, data string, signData string, header bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaSignToBase64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.