Documentation
¶
Index ¶
- func BytesToPrivateKey(pub []byte) (*rsa.PrivateKey, error)
- func BytesToPublicKey(pub []byte) (*rsa.PublicKey, error)
- func DecodeBase64(data string) ([]byte, error)
- func DecryptUsingPublicKey(data []byte, privateKey *rsa.PrivateKey) ([]byte, error)
- func EncodeBase64(data []byte) string
- func EncryptUsingPublicKey(data []byte, publicKey *rsa.PublicKey) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToPrivateKey ¶
func BytesToPrivateKey(pub []byte) (*rsa.PrivateKey, error)
func DecodeBase64 ¶
func DecryptUsingPublicKey ¶
func DecryptUsingPublicKey(data []byte, privateKey *rsa.PrivateKey) ([]byte, error)
func EncodeBase64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.