Skip to main content

Encrypt Text

AutomatR.DefaultActivities.Cryptography.EncryptText

The "Encrypt Text" activity in AutomatR is part of the Cryptography activities package, enabling the encryption of a specified text using a key derived from a specified key encoding and algorithm. This activity enhances security measures within automation workflows by encrypting sensitive information.

NameDescription
Input
AlgorithmSpecifies the cryptographic algorithm to be used for encryption. Options include AES (Advanced Encryption Standard), DES (Data Encryption Standard), Triple DES, AESGCM (AES Galois/Counter Mode), RC2, and Rijndael. Supports a CryptographyAlgorithm enumeration variable.
KeySpecifies the encryption key to be used. The key should be kept confidential and used for decryption later. Supports a SecureString variable.
TextSpecifies the text that you want to encrypt. Supports a string variable.
Misc
Display NameThis property allows you to customize the display name of the activity within the workflow.
Optional
DelaySpecifies a delay (in seconds) before executing the activity, providing flexibility in the timing of the workflow. Supports an Int32 variable. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1.
Output
ResultCaptures the result of the "Encrypt Text" operation, which is the encrypted text. It supports a string variable, allowing you to use the encrypted information in subsequent activities within the workflow.

How to use:

  1. Drag and drop the "Encrypt Text" activity onto the workflow.
  2. Choose the encryption algorithm from the drop-down menu.
  3. Provide the encryption key and the text to be encrypted.
  4. Optionally, configure the delay and customize the display name.
  5. Execute the workflow to encrypt the specified text using the chosen algorithm and key.

Example: Consider an example where the "Encrypt Text" activity is used to encrypt a sensitive message:

Encrypt Text:
Algorithm: AES
Key: "MySecretKey"
Text: "Confidential information"
Result: encryptedMessage

In this example, the activity uses the AES algorithm with the specified key to encrypt the confidential information. The result of the encryption is stored in the string variable "encryptedMessage" for further use in the workflow.

Note:

  • Ensure that the selected algorithm and key are appropriate for your security requirements.
  • Store encryption keys securely, and avoid exposing them in workflows or scripts.