Documentation ¶
Index ¶
- func DecryptWithAES(cipherText []byte, key []byte) (string, error)
- func DecryptWithSSHKey(encryptedData []byte, keyPath string) ([]byte, error)
- func EncryptWithAES(data []byte, key []byte) ([]byte, error)
- func EncryptWithRSAKey(data []byte, keyPath string) ([]byte, error)
- func EncryptWithSSHKey(data []byte, keyPath string) ([]byte, error)
- func MakeAesKey() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithSSHKey ¶
DecryptWithSSHKey decrypts data using the provided user's SSH private key
func EncryptWithAES ¶
EncryptWithAES encrypts data with the given AES key.
func EncryptWithRSAKey ¶
EncryptWithRSAKey encrypts data with the given RSA public key.
func MakeAesKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.