Documentation
¶
Index ¶
- func DecryptPassword(encryptedData string, privateKey *rsa.PrivateKey) (string, error)
- func ExportPrivateKeyToPEM(privateKey *rsa.PrivateKey) string
- func ExportPublicKeyToPEM(publicKey *rsa.PublicKey) (string, error)
- func ParseRSAPrivateKey(privateKeyPEM string) (*rsa.PrivateKey, error)
- func StringDecrypt(text string) (string, error)
- func StringDecryptWithBase64(text string) (string, error)
- func StringDecryptWithKey(text, key string) (string, error)
- func StringEncrypt(text string) (string, error)
- func StringEncryptWithKey(text, key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptPassword ¶
func DecryptPassword(encryptedData string, privateKey *rsa.PrivateKey) (string, error)
func ExportPrivateKeyToPEM ¶
func ExportPrivateKeyToPEM(privateKey *rsa.PrivateKey) string
func ParseRSAPrivateKey ¶
func ParseRSAPrivateKey(privateKeyPEM string) (*rsa.PrivateKey, error)
func StringDecrypt ¶
func StringDecryptWithBase64 ¶
func StringDecryptWithKey ¶
func StringEncrypt ¶
func StringEncryptWithKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.