Documentation ¶
Index ¶
- func DecodeKeyBase64(data []byte) (string, string, error)
- func DecodeKeyHex(data []byte) (string, string, error)
- func DecryptByBase64(base64CipherText, base64PriKey string) ([]byte, error)
- func DecryptByHex(hexCipherText, hexPriKey string) ([]byte, error)
- func EncryptToBase64(plainText []byte, base64PubKey string) (string, error)
- func EncryptToHex(plainText []byte, hexPubKey string) (string, error)
- func GenerateKeyBase64(bits int) (string, string, error)
- func GenerateKeyHex(bits int) (string, string, error)
- func LoadKeyBase64(filename string) (string, string, error)
- func LoadKeyHex(filename string) (string, string, error)
- func SignWithSha256Base64(data []byte, priKey string) (string, error)
- func SignWithSha256Hex(data []byte, priKey string) (string, error)
- func VerifySignWithSha256Base64(data []byte, base64Sign, base64PubKey string) error
- func VerifySignWithSha256Hex(data []byte, hexSign, hexPubKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptByBase64 ¶ added in v1.0.2
func DecryptByHex ¶ added in v1.0.2
func EncryptToBase64 ¶ added in v1.0.2
func EncryptToHex ¶ added in v1.0.2
func SignWithSha256Base64 ¶ added in v1.0.4
func SignWithSha256Hex ¶ added in v1.0.4
func VerifySignWithSha256Base64 ¶ added in v1.0.4
func VerifySignWithSha256Hex ¶ added in v1.0.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.