Versions in this module Expand all Collapse all v1 v1.3.8 Aug 17, 2022 v1.3.7 Jul 11, 2022 Changes in this version + func DecodePrivateKey(key []byte) (*rsa.PrivateKey, error) + func Decrypt(ciphertext []byte, privateKey []byte) ([]byte, error) + func Encrypt(plaintext []byte, publicKey []byte) ([]byte, error) + func GenerateRSAKey(bits int) (*rsa.PrivateKey, error) + func SaveRSAKey(privateKey *rsa.PrivateKey) error + func Sign(digest, privateKey []byte) ([]byte, error) + func Stringify(privateKey *rsa.PrivateKey) (pri string, pub string, err error) + func Verify(signature, digest, publicKey []byte) (bool, error)