activities
latest
false
- Overview
- Cryptography
- Database
- Java
- Python
- WebAPI
Developer activities
UiPath.Cryptography.Activities.PgpClearSignFile
Description
Creates a PGP clear-text signature of a file using a private key. The clearsigned output contains the original plaintext wrapped between -----BEGIN PGP SIGNED MESSAGE----- and -----END PGP SIGNATURE----- markers, so it is human-readable and tamper-evident.
The input file must be text, because clearsigning is designed for ASCII or UTF-8 content. For binary data, use the PGP Sign File activity instead. To verify the output, use the PGP Verify activity with the ClearSigned File (Text) verification type.
Project compatibility
Windows | Cross-platform
Windows, Cross-platform configuration
- Input File Path - The path to the file that you want to clearsign. This field supports only strings and
Stringvariables. To use a project resource instead of a path, select the field's input menu and switch to the Input File input (anIResource). - Private Key File Path - The path to your PGP private key file, used to clearsign the data. This field supports only strings and
Stringvariables. To use a project resource instead of a path, select the field's input menu and switch to the Private Key File input (anIResource). - Output File Path - The full path where the clearsigned file is saved. This field supports only strings and
Stringvariables. - Passphrase - The passphrase that unlocks the private key. To provide it as a secure string instead of plain text, select the field's input menu and switch to the Passphrase (Secure) input (a
SecureString).
Advanced options
Options
- Overwrite - If a file already exists at the output path, this overwrites it. This field only supports Boolean values (
True,False). The default value isFalse. - Continue On Error - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (
True,False). The default value isFalse. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set toTrue, the execution of the project continues regardless of any error.Note:If this activity is included in Try Catch and the value of the Continue On Error property is
True, no error is caught when the project is executed.
Output
- ClearSigned File - A resource handle to the clearsigned file that was written, stored in an
ILocalResourcevariable for use in other activities. The clearsigned text is also written to the Output File Path.