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