Create your first automation in just a few minutes.Try Studio Web →
by Internal Labs
1
Activity
3k
Hello,
We are currently in a tricky situation with our client that uses PGP encryption for sensitive files, unfortunately we do not possess a passphrase or Private key for these files, is there any way to decrypt these files?
It is not possible to decrypt the file without the public or private key.
If the file was encrypted with the private key (owner of private key sends encrypted file and public key to someone else), then you need the public key to decrypt it. If the file was encrypted with the public key (client with public key encrypts file so only the owner of the public key can decrypt it), then you need the private key to decrypt it.
Try decrypting the file with the public key to see if you are able to see the contents. If not, you will need to contact the owner of the private key in order to proceed with next steps.
When PGP keys are generated using GPG on a MAC the decryption works fine, however when keys are generated using kleopatra on a Windows machine the activity fails with the error message : File Decryption Failed Unknown Packet Type encountered: 20.
In both cases RSA, 4096 bit encryption was used. Any ideas why?
Hi Saraswathi,
This component was originally designed to work with RSA-1024 bit encryption and was updated to use RSA-2048 bit encryption. I can add an option to specify the key size in the next version.
Thanks
Hi, this is really great activity.
Can you please advise what is the algorithm and key size used by Generate Key Pair activity?
Project requirements are to use RSA-2048 and want to make sure we are meeting them.
Thank you
Hi Parnahaj,
Version 1.0.5 has been updated to generate RSA-2048 strength key pairs.
Thanks
Hi Bernard,
Is there any other package that works with Uipath 2019.4.
We are in the process of upgrade to 2021.10, Mean while I am looking for a temporary solution for PGP encryption.
Hi Prasanth,
Version 1.0.5 has been updated to include support for .NET Framework 4.6.1+ and .NET Core 6.0+
This version also dropped the dependency on UiPath System and UiAutomation libraries.
Thanks
Does this activity use the GNU PG tool?
Hi Anthony,
The activity uses the PGPCore Library.
https://github.com/mattosaurus/PgpCore
Hi Team,
I downloaded PGP encryption and added Decrypt File activity, I updated the fields such as File In (Path to PGP file path), File Out (Destination file path), FilePrivateKey (Location to the private key), and finally Passphrase (entered as string). However, I received the below error message when tried to decrypt the PGP encryption file.
Please advise if there are any settings that i need to configure.
Error message:
"Decrypt File: No compiled code to run
error BC30002: Type 'PgpCore.PGP' is not defined. At line 28"
Thank you for the question. I will look into this and get back to you.
Hello! Thank you for publishing this. I was wondering if an activity would become available to determine the validity of a PGP key based on the content of a file. We are currently achieving this by having our bot openning a bash window and running the following command: gpg --list-packets --verbose
Hi Derrick,
This is great idea. I will look into adding this in a coming release. Thank you for the suggestion
Technical
Version
1.0.7Updated
February 5, 2024Works with
Studio: 23.10+
Certification
Silver Certified
Collections
Support
UiPath Community Support
Resources