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 ¶
func DecryptByHex ¶
func VerifySignWithSha256Hex ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.