Documentation ¶
Index ¶
- func Decrypt(cipherText []byte, privatePEM []byte) ([]byte, error)
- func DecryptPadding(cipherText, privatePEM []byte) (res []byte, err error)
- func Encrypt(plainText []byte, publicPEM []byte) ([]byte, error)
- func EncryptPadding(plainText, publicPEM []byte) (res []byte, err error)
- func GenerateRSAKeyPairs() (publicKey []byte, privateKey []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptPadding ¶
DecryptPadding 分段解密
func EncryptPadding ¶
EncryptPadding 分段加密
func GenerateRSAKeyPairs ¶
GenerateRSAKeyPairs 生成RSA私钥和公钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.