Has anyone worked with PGP encryption and decryption for file data extraction. We are currently looking to build a solution that can decrypt PGP-encrypted files, and I would greatly appreciate any guidance or assistance you might be able to provide.
If you have worked with PGP file decryption before or have knowledge of alternative approaches/tools that we could implement, I would be very grateful if you can share the knowledge here.
Not worked directly with PGP decryption in UiPath.
Have seen tutorials using Gpg4Win with command line integration through UiPath.
Approach is to call gpg.exe with arguments for decryption and manage keys securely.
Decrypted output can then be processed in UiPath workflow.
I have not worked on PGP Encryption, but here is what I found
Option 1: Use GnuPG (GPG) with PowerShell
This approach uses a reliable, open-source tool for PGP operations and integrates it into your UiPath workflow via a script.
Prerequisites
Install GnuPG: Download and install GPG4Win from the official website on the machine running your UiPath Robot. During installation, choose the “GnuPG” and “GPGME” components.
Import your PGP private key: You must import the private key and its associated passphrase into GnuPG for the decryption to work. You can do this with the following command:
gpg --import "C:\path\to\your\privatekey.asc"
Trust the key: To avoid warnings and automate the decryption process, you may need to set the trust level for your key. In GPG, use gpg --edit-key <key_id>, then use the trust command and set it to level 5 (ultimate).
UiPath automation steps
Use the Invoke Power Shell activity: Add this activity to your workflow.
Configure the script: Paste the following PowerShell script into the body of the activity.
Define parameters: For best practice, create UiPath variables for the file paths and passphrase instead of hardcoding them in the script.
Could you please let me know what led you to this conclusion? The above-linked component is published on our marketplace, which means it is not supported, but it is marked as compatible with the Windows-type projects in Studio. This means that it should work just fine, at least in theory.
One thing I will leave here for anyone who would like to work with us on this
We are happy to take a PR on the above repository to add the PGP encryption activities to the official package. We have this on our radar, but there is currently no associated timeline to deliver this capability as an improvement.