Documentation
¶
Index ¶
- func Decrypt(contents []byte, aesKey string) []byte
- func Encrypt(fileContents []byte, aesKey string) []byte
- func GeneratePrivateRSAKeyPair() (*rsa.PrivateKey, []byte)
- func GeneratePublicRSAKey(publicKey *rsa.PublicKey) ([]byte, error)
- func PrivateRSADecryptAESKey(privateKey []byte, encryptedText, label []byte) (decryptedText []byte)
- func PublicRSAEncryptAESKey(publicKey *rsa.PublicKey, sourceText, label []byte) (encryptedText []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateRSAKeyPair ¶
func GeneratePrivateRSAKeyPair() (*rsa.PrivateKey, []byte)
GeneratePrivateRSAKeyPair generates a Private RSA Key and outputs pem file format bytes
func GeneratePublicRSAKey ¶
GeneratePublicRSAKey generates a public RSA key
func PrivateRSADecryptAESKey ¶
PrivateRSADecryptAESKey decrypts the AES key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.