Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRSAKey ¶
GenerateRSAKey 生成RSA私钥和公钥,保存到文件中 bits 证书大小
func MarshalPKCS8PrivateKey ¶
func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) []byte
func RSA_Decrypt ¶
RSA_Decrypt RSA解密 cipherText 需要解密的byte数据 path 私钥文件路径
func RSA_Encrypt ¶
RSA_Encrypt RSA加密 plainText 要加密的数据 path 公钥匙文件地址
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.