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 automation 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.
Encrypt from file with AES action, encrypt the contents of a file with AES, using a key and a specified encoding format. The Decrypt to file with AES action, decrypt a string to a file with AES based on a specified key and an encoding format.
Encrypt from file with AES action and Decrypt to file with AES action with the Desktop flow in Microsoft Power Automate.
Microsoft Power Automate,Download the Power Automate installer
Step 1. Microsoft Power Automate -> New Flow
Next, Give the Flow name as PADCryptFile, Click the Create button,
After that, we are able to see the Desktop flow,
Step 2. For Testing Cryptography actions with plain text,
First, Add the Encrypt from file with AES action, and Set the Encoding parameter as System default, File to encrypt parameter as “<File path>”, 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 “DispEncrypt”, Message to display Parameter value as % EncryptedText% and Click Save Button
Add the Decrypt to file with AES action, Set the Encoding parameter as System default, Text to decrypt parameter as %EncryptedText%, Decryption key parameter as a test, decrypt to File parameter as “<File path>”, If the file exists parameter as overwrite, Variable produced as DecryptedFile, and Click Save Button
Read the contents of a text file, add the Read text from file action, set the File path parameter as “<File path>”, Store content as a parameter as Single text value”, Variable produced as FileContents, and Click Save Button
For Displaying the Decrypted text, Add the Display message action, Set the Message box title Parameter value as “DispDecrypt”, Message to display Parameter value as %FileContents% and Click Save Button
Now, Save the PADCryptFile Desktop Flow,
Step 3. PADCryptFile Desktop Flow in Microsoft Power Automate,
PADCryptFile, an Encrypted File is
Decrypted File is
Summary:
Now, you have successfully tested Cryptography actions with File in Desktop flow – PADCryptFile in Microsoft Power Automate.