Documentation ¶
Index ¶
- func GetMd5Hash(text string) string
- func LoadPrivateKey(prikeyPath string) (*rsa.PrivateKey, error)
- func LoadPublicKey(publicKeyPath string) (*rsa.PublicKey, error)
- func ParsePrivateKey(data []byte) (*rsa.PrivateKey, error)
- func ParsePublicKey(data []byte) (*rsa.PublicKey, error)
- func Sign(priKey *rsa.PrivateKey, data []byte) (string, error)
- func Verify(pubKey *rsa.PublicKey, data []byte, sig string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMd5Hash ¶
func LoadPrivateKey ¶
func LoadPrivateKey(prikeyPath string) (*rsa.PrivateKey, error)
func ParsePrivateKey ¶
func ParsePrivateKey(data []byte) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.