Decrypting with Private Key string

Hi There,

I am using UiPathTeam decrypting activity to decrypt using a Private key which i am fetching from Orchestrator/Secret Server location, I am then writing this string to a text file using the variable, and then using the file in the decrypt activity.

This string is throwing off the format necessary for the file to decrypt successfully.

Any thoughts/ways around this :confused:

Many Thanks!

1 Like

Hey @Kyleb91

Is this the activity you are using - https://docs.uipath.com/activities/docs/decrypt-text ?

Thanks
#nK

1 Like

Hey man, Iā€™m using PGP Encryption - RPA Component | UiPath Marketplace

This is due to needing PGP type.

1 Like

Hey man, Iā€™m using PGP Encryption - RPA Component | UiPath Marketplace

This is due to needing PGP type. This only accepts a File input.

1 Like

Sure thanks for the info @Kyleb91

Let me check that once.

1 Like

Thanks, but I found a solution, when writing to a text file, the spaces were not actually creating new lines. I solved this by adding this : strPrivateKey.replace(" ", " "+Environment.NewLine) to account for this, resulting in correct format for reading.

Cheers!

Okay cool. Thanks for sharing it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.