Create your first automation in just a few minutes.Try Studio Web

PGP Encryption

PGP Encryption

by Internal Labs

1

Activity

Downloads

3k

Omar Tarek
Posted a year ago

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?

Kristopher Kim
Posted a year ago ago

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.

Saraswathi S
Posted a year ago

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?

Kristopher Kim
Posted a year ago ago

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

Jan Parnahaj
Posted 3 years ago

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

Kristopher Kim
Posted 2 years ago ago

Hi Parnahaj,

Version 1.0.5 has been updated to generate RSA-2048 strength key pairs.

Thanks

Prasanth Pulipati
Posted 3 years ago

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.

Kristopher Kim
Posted 2 years ago ago

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

Anthony McArthur
Posted 3 years ago

Does this activity use the GNU PG tool?

Bernard Lawes
Posted 3 years ago ago

Hi Anthony, 

The activity uses the PGPCore Library.

https://github.com/mattosaurus/PgpCore

Vijay Anand
Posted 4 years ago

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"

Bernard Lawes
Posted 3 years ago ago

Thank you for the question.  I will look into this and get back to you.

Derrick Serbia
Posted 4 years ago

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

Bernard Lawes
Posted 4 years ago ago

Hi Derrick, 

This is great idea.  I will look into adding this in a coming release.  Thank you for the suggestion

Publisher

Internal Labs

Visit publisher's page

License & Privacy

License Agreement

Privacy Terms

Technical

Version

1.0.7

Updated

February 5, 2024

Works with

Studio: 23.10+

Certification

Silver Certified

Support

UiPath Community Support

Resources