How To Encrypt And Decrypt The Data – UiPath

With the creation of General Data Protection Regulations, every organizations is concerned with data protection.

UiPath allows the users to encrypt and decrypt sensitive data by using few encryption algorithms (such as AESDESRC2Rijndael, and TripleDES).

Encryption is the process of hiding data.
Decryption is the process of reverting encrypted data back to its original form.

Please install the below package
UiPath.Cryptography.Activities 

Example

Topics:
Encrypt & Decrypt Text
Encrypt & Decrypt File

Implementation using UiPath :

Encrypt & Decrypt Text

When we have text as a input, then perform the below steps

Step 1:
Drag “Encrypt Text” activity into the designer panel and to configure an Encrypt Text activity, you need to pick the algorithm to use, the encoding of the original text, the key used for encryption and the text itself.

And save the result into a variable (.i.e here “EncryptedText”)

Step 2:
Drag “Decrypt Text” activity into the designer panel and to configure an Decrypt Text activity, you need to pick the algorithm to use, the encoded text, the key used for encryption.

And save the result into a variable (.i.e here “DecryptedText”)


Encrypt & Decrypt File

When we have file as a input, then perform the below steps

Sample file:

Step 1:
Drag “Encrypt File” activity into the designer panel and in the case of encrypting files, the process is similar, except, instead of providing the text you want to encrypt, you supply the path to the file you wish to encrypt.

The output file will have the above data in it…

Step 1:
Drag “Decrypt File” activity into the designer panel and to decrypt a file, you need to specify the key, the algorithm, the path to the encrypted file and the output path for the decryption. Keep in mind that the key and algorithm need to be the same as the ones used originally for encryption.

The output file will have the above data in it…

Click here to download the Source Code…

Hope it has helped you…

Advertisements

Leave a Reply

%d bloggers like this: