How we can encode and decode strings


Adrian Brookbank
Hi David, Need to encode and decode string in App Builder. Is possible? I know it can encode (STRHash)... Am I missing something? Thanks, AJ

DecSoft

Hello Adrian,

I think we must put clear what we wanted... encode? encrypt? hash? Maybe you can post here what you wanted? That is, in order to see if one thing or another can do the job.



Adrian Brookbank
Hi David, Sorry should have been clear, App Builder App 1 >>>> Encode String >>>> (SERVER) >>>> App Builder App 2 >>> Decode String. Can't send clear text. Wasn't sure if HASH would work. Thanks!

DecSoft

Hello Adrian,

No problem. First of all... a server must can receive clear text for sure... and then put it available for another app.... but anyway, suposing we really want to encode the text and then decode it, probably what you are looking for are the actions: "StrToBase64" and their counter part "Base64ToStr".



Adrian Brookbank
Yeah i'm sending clear text, just want it encoded. Thanks David, great help as ever.

DecSoft

You're welcome, Adrian! :-)



Amin Mousavi
To be completely safe you could encrypt all the communications between the App and Server and vise versa. I know https handles the communication security, yet one point is to store only the encrypted data in the server and never have any flat text available there for the data that are important to be kept safe. So the safest way could be using asymmetric encryption and avoid any encryption at the server that is storing the data. It would be like App encrypt--->storing server--> decrypting server---> app. You could use JSENCRYPT to encrypt and decrypt at the app side and OPENSSL at server side for the same. http://travistidwell.com/jsencrypt/. I can leave here more details if it is what you are looking for. Security is not my profession so there could be security flaws here too, or some steps could be simply unnecessary.

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.