by alterxyz · v0.0.2
A collection of tools for GPG operations: encrypt, decrypt, sign, verify messages, and generate key pairs using pgpy.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
This plugin provides a suite of tools for performing common GPG (GNU Privacy Guard) operations on text directly within Dify, utilizing the pgpy Python library. It allows users and AI agents to encrypt, decrypt, sign, and verify messages, as well as generate new GPG key pairs.
The plugin includes the following tools:
encrypt_message): Encrypts a plaintext message using a recipient's GPG public key.decrypt_message): Decrypts a GPG-encrypted message using the recipient's private key and optional passphrase.sign_message): Creates a detached GPG signature for a plaintext message using the signer's private key and optional passphrase.verify_message): Verifies a detached GPG signature against the original message using the signer's public key.generate_key_pair): Generates a new GPG key pair (public and private keys) with specified user details and optional parameters.No specific setup is required beyond adding the plugin to Dify. The necessary pgpy library is included in the plugin's requirements.
Each tool requires specific inputs, typically provided as parameters within Dify.
plaintext: The text message you want to encrypt.recipient_pubkey_str: The recipient's full ASCII-armored GPG public key block.encrypted_message_str: The full ASCII-armored PGP encrypted message block.private_key_str: Your full ASCII-armored GPG private key block. Handle with extreme care.passphrase (Optional): The passphrase protecting your private key, if applicable.message_to_sign: The text message you want to sign.signer_private_key_str: Your full ASCII-armored GPG private key block used for signing. Handle with extreme care.passphrase (Optional): The passphrase protecting your private key, if applicable.original_message: The original plaintext message that was signed.signature_blob: The detached ASCII-armored GPG signature block.signer_pubkey_str: The signer's full ASCII-armored GPG public key block.true or false) indicating if the signature is valid, along with a descriptive text message.real_name: The name to associate with the key (e.g., "Alice Wonderland").email: The email address to associate with the key (e.g., "alice@example.com").passphrase (Optional): A passphrase to protect the generated private key. Highly recommended.key_type (Optional): The primary key algorithm (e.g., EdDSA, RSAEncryptOrSign). Defaults to EdDSA.key_param (Optional): Key length (for RSA/DSA) or curve name (for ECC). Defaults depend on key_type.This plugin uses the pgpy library for all cryptographic operations.