I am tried encrypting the image by first converting the image from byte to text format as AES encryption server action takes plaintext and key as input and for key I take user input key value and then generate the ciphertext for the same and for decryption of that ciphertext I was taking user input as key value to check if the input key value is same or not so how should I check this by using the plugin itself and don't add this condition by my own in the flow. So which key plugin should I used to check the key entered by the user to decrypt the ciphertext into plaintext. I am attaching the oml file below. Do check that out and send me the updated one if anyone have any idea to achieve this or tell any suggestion what I can do. But first do check out the oml file.
Hi Chetna,
You may refer with the uploaded .oml file.
Note:
The usage of the user key will depend on your use case. It could be from an input field and/or retrieve from the database. In my example, it is simply from an input box. You're free to explore it first before applying complex implementation.
Regards,
Chris
Hi,
I assume that the logic you want to implement with your thought process is somehow like the ff:
If yes, you may check the simple implementation I made.
While I am publishing your module it shows the Foreign Module error. Can you tell me how to resolve this error in order to publish and run the module.
Kindly try this solution https://www.outsystems.com/forums/discussion/81128/how-integrate-someone-elses-module-in-my-app/
I want to enter the key value by the user during image encryption and check the key for decrypting the image with the help of crypto plugin.
You can add an input parameter to the encryption process/encrypt action (in the provided .oml) then replace AES_NewKey with AES_KeyFromPassword and set the key value using the new input parameter (probably came from the input box where you're setting the user key).
Which key should I add to compare the password entered by the user during image decryption?? Can you tell the flow for decryption also.
Thank You.