I have a Data consists of UberTechLabs. This text needs to be encrypted and then decrypted.
We can achieve this by using EncryptString and DecryptString components of Security.
Here are the steps to follow:
1.Go to the Component Tool Box panel, extract the following components on to the Designer Surface.
a.Click Icon Utilities.
b.From Utilities category drop-down, click Security and drag EncryptString and DecryptString components.
c.Click Icon General.
d.From General category drop-down, drag MessageBox component.
2.Go to EncryptString Component:
a.Double-click Text property field and enter the text to be encrypted.
b.Double click EncryptionKey property field and enter the value of encrypted text.
3.Go to DecryptString component:
a.Double click Text property field and enter the text to be decrypted.
b.Double-click EncryptionKey property field and enter the value of encrypted text.
4.Connect the Control In/Out ports between the components right from Start to End components.
5.Connect the Data In/Out ports of EncryptString, DecryptString and MessageBox components as shown in the fig.
6.Press F5 key to run the activity.
The output would be:
Data is Encrypted as:
Data is Decrypted as: