Documentation ¶
Index ¶
- func Decrypt(privateKey []byte, ciphertext []byte) ([]byte, error)
- func EncodePrivateKey(private *rsa.PrivateKey) []byte
- func EncodePublicKey(public *rsa.PublicKey) ([]byte, error)
- func Encrypt(publicKey []byte, origData []byte) ([]byte, error)
- func GenerateKey(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error)
- func SignWithSha256Base64(data string, prvKeyBytes []byte) (string, error)
- func VerySignWithSha256Base64(originalData, signData string, pubKeyBytes []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePrivateKey ¶
func EncodePrivateKey(private *rsa.PrivateKey) []byte
func GenerateKey ¶
func SignWithSha256Base64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.