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.
- Use the function PGPEncrypt.
- Store a 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.
- Use the function PGPEncryptAndSign.
- Store a Base64 encoded public key or a Key Vault reference in an environment variable called pgp-public-key.
- Store a Base64 encoded private key or a Key Vault reference in an environment variable called pgp-private-key-sign.
- Store a passphrase or a Key Vault reference in an environment variable called pgp-passphrase-sign (optional).
- Make a request to the function with the unencrypted data in the body.