Azure function which performs PGP decryption using PgpCore. The private key can be stored in an environment variable or in Azure Key Vault by using Key Vault references.
- Use the function PGPDecrypt.
- Store a Base64 encoded private key or a Key Vault reference in an environment variable called pgp-private-key.
- Store a passphrase or a Key Vault reference in an environment variable called pgp-passphrase (optional).
- Make a request to the function with the encrypted data in the body.
- Use the function PGPDecryptAndVerify
- Store a Base64 encoded private key or a Key Vault reference in an environment variable called pgp-private-key.
- Store a passphrase or a Key Vault reference in an environment variable called pgp-passphrase (optional).
- Store a Base64 encoded public key or a Key Vault reference in an environment variable called pgp-public-key-verify.
- Make a request to the function with the encrypted data in the body.
- Option 1: Use a program such as GPG or GPW4Win.
- Option 2: Use the console app PGPEncryptConsoleApp in the repo AzureFunctionsPGPEncrypt.