encryption

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWithAES

func DecryptWithAES(cipherText []byte, key []byte) (string, error)

func DecryptWithSSHKey

func DecryptWithSSHKey(encryptedData []byte, keyPath string) ([]byte, error)

DecryptWithSSHKey decrypts data using the provided user's SSH private key

func EncryptWithAES

func EncryptWithAES(data []byte, key []byte) ([]byte, error)

EncryptWithAES encrypts data with the given AES key.

func EncryptWithRSAKey

func EncryptWithRSAKey(data []byte, keyPath string) ([]byte, error)

EncryptWithRSAKey encrypts data with the given RSA public key.

func EncryptWithSSHKey

func EncryptWithSSHKey(data []byte, keyPath string) ([]byte, error)

func MakeAesKey

func MakeAesKey() ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL