/AzureFunctionsPGPDecrypt

Azure function which performs PGP decryption.

Primary LanguageC#MIT LicenseMIT

license

AzureFunctionsPGPDecrypt

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.

Decrypt

  • 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.

Decrypt and verify

  • 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.

Key generation