Documentation
¶
Index ¶
- func RSA_DecodeJSEncrypt(data string, privatePemPath string) string
- func RSA_Decrypt(src []byte, privateKey *rsa.PrivateKey) ([]byte, error)
- func RSA_DecryptByPem(src []byte, file string) ([]byte, error)
- func RSA_Encrypt(src []byte, publickey *rsa.PublicKey) ([]byte, error)
- func RSA_GenKeys(bits int) (privateKey *rsa.PrivateKey, publicKey *rsa.PublicKey, err error)
- func RSA_GenPemFiles(dir string, bits int) error
- func RSA_GenPems(privateKeyWriter, publicKeyWriter io.Writer, bits int) error
- func RSA_PrivateKeyFromFile(file string) (*rsa.PrivateKey, error)
- func RSA_PublicKeyFromFile(file string) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RSA_DecodeJSEncrypt ¶
RSA_DecodeJSEncrypt 用于用户名、密码解密
func RSA_GenKeys ¶
func RSA_GenPems ¶
RSA_GenPems 产生公钥私钥对应的pem文件
func RSA_PrivateKeyFromFile ¶
func RSA_PrivateKeyFromFile(file string) (*rsa.PrivateKey, error)
解析私匙
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.