Documentation ¶
Index ¶
- Constants
- func Decrypt(decryptStr string, key []byte, iv string) (string, error)
- func Encrypt(encryptStr string, key []byte, iv string) (string, error)
- func FormatPrivateKey(privateKey string) string
- func ParsePrivateKey(privateKey string) (*rsa.PrivateKey, error)
- func RsaSign(signContent string, privateKey string, hash crypto.Hash) string
Constants ¶
View Source
const ( PEM_BEGIN = "-----BEGIN RSA PRIVATE KEY-----\n" PEM_END = "\n-----END RSA PRIVATE KEY-----" )
Variables ¶
This section is empty.
Functions ¶
func FormatPrivateKey ¶ added in v1.0.52
func ParsePrivateKey ¶ added in v1.0.52
func ParsePrivateKey(privateKey string) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.