Microsoft Power Automate is a software by Microsoft for the automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. More Details https://powerautomate.microsoft.com/en-us/
Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate of all repetitive desktop processes.
Cryptography actions enable you to encrypt and decrypt plain text and text from files providing a key and an encoding format.
The Encrypt text with AES action encrypts a text using the AES algorithm and a user-specified encryption key. You can provide the encryption key directly or through a variable. To decrypt a text, use the Decrypt text with AES action, and enter the encrypted text and the encryption key previously used to encrypt it.
Reading this article, you can learn how to encrypt or decrypt plain text using Encrypt text with AES action and Decrypt text with AES action with the Desktop flow in Microsoft Power Automate.
The following important tools are required for developing Microsoft Power Automate,
- Windows 10/11 (Recommended)
- Power Automate Desktop - Download the Power Automate installer
Now we can discuss step-by-step App development.
Step 1. Open Microsoft Power Automate -> New Flow, Next, Give the Flow name as PADTextCrypto, Click the Create button,
After that, we can see the Desktop flow,
Step 2. For Testing Cryptography actions with plain text,
First, Add the Encrypt text with AES action, and Set the Text to encrypt parameter as “Welcome to C# Corner”, Encryption key parameter as test, Variable produced as EncryptedText and Click Save Button
For Displaying the Encrypted text, Add the Display message action, Set the Message box title Parameter value as “DispCryptoText”, Message to display Parameter value as % EncryptedText% and Click Save Button
Add the Decrypt text with AES action, and Set the Text to decrypt parameter as %EncryptedText%, Encryption key parameter as test, Variable produced as DecryptedText and Click Save Button
For Displaying the Decrypted text, Add the Display message action, Set the Message box title Parameter value as “DispDecryptText”, Message to display Parameter value as % DecryptedText% and Click Save Button
Now, Save the PADTextCrypto Desktop Flow,
Step 3. Now we can run your PADTextCrypto Desktop Flow in Microsoft Power Automate,
The output of the PADTextCrypto, Encrypted plaintext is,
Decrypted plaintext is
Summary
You have successfully tested Cryptography actions with plain text in Desktop flow – PADTextCrypto in Microsoft Power Automate.