activities
latest
false
- Overview
- Cryptography
- Database
- Java
- Python
- WebAPI
Encrypt Text
Developer Activities
Last updated Oct 22, 2024
Encrypt Text
UiPath.Cryptography.Activities.EncryptText
- Algorithm - A drop-down menu which enables you to select the encryption algorithm you want to use. The following options are available: AES (Deprecated), AES GCM, DES (Deprecated), RC2 (Non-FIPS) (Deprecated), Rijndael (Non-FIPS) (Deprecated), and TripleDES.
- Text - The text that you want to encrypt. This field supports only strings and
String
variables. - Key - The key that you want to use to encrypt the specified string. This field supports only strings and
String
variables.
Advanced options
Options
- Key Encoding - The encoding used to interpret the key specified in the Key property. The following options are available: System default, Unicode, Unicode (Big-Endian), Unicode (UTF-32), Unicode (UTF-32 Big-Endian), US-ASCII, Western European (ISO), and Unicode (UTF-8).
- Continue On Error - Specifies if the automation should continue even if 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.
Output
- Encrypted Text - Reference to the encrypted text stored in a
String
variable for use in other activities.
Properties panel
Common
-
Continue On Error - Specifies if the automation should continue even if 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 isTrue
, no error is caught when the project is executed. - DisplayName - The display name of the activity.
Input
- Algorithm - A drop-down menu which enables
you to select the encryption algorithm you want to use. The following options
are available: AES (Deprecated), AES GCM, DES (Deprecated),
RC2 (Non-FIPS) (Deprecated), Rijndael (Non-FIPS) (Deprecated),
and TripleDES.
Note:When using the AES GCM algorithm, the decryption input must be provided in the format of (concatenated bytes):
Salt (8bytes) + IV (12 bytes) + encryptedData (variable bytes) + Tag (16 bytes)
The activity also uses the following parameters:- PBKDF2 iterations count is 10000
- The generated key is 256-bit (32 bytes)
- Encoding - The encoding used to interpret the input text and the key specified in the Key property. This field supports only
Encoding
variables. For more info on this variable type, please view the official Microsoft documentation. - Key - The key that you want to use to encrypt the specified string. This field supports only strings and
String
variables. - Key Secure String - The secure string used to encrypt the input string.
- Text - The text that you want to encrypt. This field supports only strings and
String
variables.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
- Result - The encrypted text, stored in a
String
variable.