Documentation
¶
Index ¶
- func DecryptByAES(content []byte, key []byte) (out []byte, err error)
- func DecryptByRSA(content []byte, privateKey *rsa.PrivateKey) (out []byte, err error)
- func EncryptByAES(content []byte, key []byte) (out []byte, err error)
- func EncryptByRSA(content []byte, publicKey *rsa.PublicKey) (out []byte, err error)
- func GenerateSecret() (secret []byte, err error)
- func LoadRSAPrivateKeyFromFile(path string) (key *rsa.PrivateKey, err error)
- func LoadRSAPublicKeyFromFile(path string) (key *rsa.PublicKey, err error)
- func TarGiz(source string) (out []byte, err error)
- func UnTarGiz(content []byte, target string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptByRSA ¶
func DecryptByRSA(content []byte, privateKey *rsa.PrivateKey) (out []byte, err error)
func EncryptByRSA ¶
func GenerateSecret ¶
func LoadRSAPrivateKeyFromFile ¶
func LoadRSAPrivateKeyFromFile(path string) (key *rsa.PrivateKey, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.