I'm working on this mobile app where we have a usecase for encrypting/decrypting names on the client side.
I want to implement this by using one JS node to encrypt with a base58 encoder on the client side when a user is offline. However, I cannot get my JS to work. As far as I can tell, the input parameter is being received correctly, but the output always returns "" and I cannot find out why.
For an example of what I'm trying to do, see below image or attached oml (LocalCase Screen).
(I am aware this does almost nothing in terms of security. I'm not at liberty to disclose the use case, but it makes sense in the big picture).
Hello
As Ruben mentioned decodeText() function is not being executed. I made a little change to your code and it seems to be working now.
you need to define the variables outside the function or you need to execute a function
Check the attached sample bellow.
https://personal-ejuytnht.outsystemscloud.com/TestApp/SampleEncode
I hope this helpsThanksTousif Khan
Thank you! This has not only resolved my problem, but I also get why it did not work!
First thing I would do is to indent the code.
After doing it, you'll notice that you are declaring a function named decodeText but you are never executing it. That's probably why the output parameter is empty.