EncryptText

Estimated reading: 5 minutes 1742 views

This activity allows users to encrypt text using a selected key encoding and encryption algorithm.

Properties

INPUT

Algorithm: This parameter indicates to choose the algorithm type from the drop-down menu that is used to encrypt the text based on it.

1. AES(Deprecated)
2. AES GCM
3. DES (Deprecated)
4. RC2 (Non-FIPS) (Deprecated)
5. Rijndael (Non-FIPS) (Dperecated)
6. Triple DES.

Refer to the documentation below to view the types of algorithms.
By default, the activity recommends the most commonly used type, “AES GCM”.

DelayAfter: It assists the user to add a delay before initiating subsequent activities. The delay duration here is in milliseconds. By default, it is set to “1000” milliseconds.
When the option is left blank, the delay will not be considered.

DelayBefore: It assists the user in adding a delay before starting the execution of the activities. The delay duration here is in milliseconds. By default, it is set to “1000” milliseconds.
When the option is left blank, the delay will not be considered.

Input Text*: This parameter indicates to provide the input text which needs to be encrypted.

This parameter accepts the values in “String” datatype. You can either hardcode the values in “String” format or can provide the variable in “String” datatype.

Key Encoding: It assists the user to choose the key encoding type from the drop-down menu that is used to perform the encryption algorithm.

Click here to refer the documentation to view the types of key encoding.

By default, the activity recommends the most commonly used type, “Unicode UTF-8”.

Secret Key*: This parameter indicates to provide the key which is used by algorithm chosen to encrypt as well as decrypt the file.

This field accepts values in “String” datatype. You can either hardcode the values in “String” format or can provide the variable in “String” datatype.

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the “Boolean” value as “True” or “False.”

True: Continue executing the workflow regardless of any errors thrown.
False: Halt the workflow if it encounters any errors.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

Version: It indicates the version of the feature being used.

OUTPUT

Output TextIt assists the user to declare a variable here to view output as the encrypted text. 

This field returns values in “String” datatype. You can either hardcode the values in “String” format or can provide the variable in “String” datatype.

Result: It provides the ability to view the execution status of the activity. It returns values in “Boolean.”

True: Indicates that the activity has been executed successfully without any errors.
False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.

Represents mandatory fields to execute the workflow.

Here’s an example of how to use the activity in a workflow:

Steps to build the bot:

In this example, we will use the “Encrypt Text” activity to encrypt text extracted from a website.  The text will be taken from the Sutherland website for encryption.

1. Create a new workflow/ open an existing workflow.
2. Drag and drop the “OpenWebBrowser” activity from the “WebAutomation” feature into the workflow to launch the Sutherland website and set it as the start node.
a. Double click on the activity.
b. Enter the “URL” as https://www.sutherlandglobal.com/.
3. Next, add the “GetText” activity from the “WebAutomation” feature next to the “OpenWebBrowser” activity to extract text from the website.
4. Double-click on the activity.
a. Click on the “Select Element” option and navigate to the website to identify the text.
b. Once you have selected the element, the attributes will be displayed in the “RobilitySpy” window.
c. In the “RobilitySpy” window, the default attributes required for automation will be pre-selected. If you need additional attributes to locate the element, select them as needed.
d. For this example, use the default selected attributes.
e. Click the “Save” button. The attributes will be automatically filled in the properties.
f. Next, navigate to the “Text” field in the output section of the properties to declare a variable for the output. Here it is as “Out_text”.
5. Now, place the “EncryptText” activity into the workflow next to the “GetText” activity.
a. This activity is used to encrypt the text extracted from the website and double-click on the activity.
b. Proceed with the default algorithm type (AES GCM).
c. Navigate to the “Input Text” field in the properties section to provide the input.
d. Use “Out_Text” as the value, which is the extracted text from the website.
e. Next, go to the “Secret Key” field and provide a random value as the key for encryption. For example: Use “ABC123456789TEXT” as the key.
f. Now, go to the “Output Text” field in the output section of the properties to declare a variable for the encrypted text. Here it is as “Encrypted_Text”.
6. Now, place the “WriteLog” activity into the workflow to view the encrypted text.
a. Provide the input as “Encrypted_Text” and set the log level to “Info”.
7. Save and execute the workflow.

Share this Doc

EncryptText

Or copy link

CONTENTS