Documentation
¶
Index ¶
- func DecodeAesJson(cipherText string, priv string, dest interface{}) error
- func DecryptAes(cipherText []byte, key []byte) ([]byte, error)
- func EncryptAes(plainText []byte, key []byte) ([]byte, error)
- func EncryptAesJson(data interface{}, priv string) (string, error)
- func GenerateKeyPair(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error)
- func GenerateKeyPairBase64(bits int) (string, string, error)
- func PrivateKeyToBytes(priv *rsa.PrivateKey) []byte
- func PublicKeyToBytes(pub *rsa.PublicKey) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAesJson ¶
func EncryptAesJson ¶
func GenerateKeyPair ¶
func PrivateKeyToBytes ¶
func PrivateKeyToBytes(priv *rsa.PrivateKey) []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.