Encrypt data using PGP with proper platform configuration
The data to encrypt
The PGP public key
Promise resolving to encrypted data
Decrypt data using PGP with proper platform configuration
The encrypted data
The PGP private key
Promise resolving to decrypted data
Generate a new PGP key pair with platform-appropriate configuration
Optional
options: { name?: string; email?: string; passphrase?: string }Key generation options
Optional
name?: stringThe name for the PGP key
Optional
email?: stringThe email for the PGP key
Optional
passphrase?: stringOptional passphrase to protect the private key
Promise resolving to public and private key pair
PGP operations that require different configurations per platform