Hey guys, I need help.
I don't want user to see the variable that i pharse in the url. So I tried to encrypt it with crypto API. This is my first time using it. At first its working but then I tried again, there's an error.
It says "Invalid length for a base-64 char array or string.
This is my encrypt function :
This is the decrypt function :
can someone help, or are there other way to hide the variable I pharse through URL ?
Hello
For Crypto api you can check available solution on this thread
https://www.outsystems.com/forums/discussion/56839/hiding-url-parameters-for-vapt/
https://www.outsystems.com/forums/discussion/64311/change-parameter-in-url-with-cryptoapi-or-other-solution/
There are some ways you can encrypt the input parameters in url
Check here
https://www.outsystems.com/forums/discussion/71831/encrypting-input-parameters-in-url-of-details-screen-in-reactive-app/
https://www.outsystems.com/forums/discussion/42759/encode-the-url-parameter-values/
Hope this helps
Thanks
Hy @raven ransford
You have more ways to do what you desire : https://www.osquay.com/knowledge-center/how-to-deal-with-url-parameters-in-outsystems-to-hide-or-to-validate
Hi Raven,
Have you debugged your program to see at what point in your app the error is generated? I would assume that after you decrypt the site property's value, you try to decode the Base64 string, and that fails? Can you see what the decrypted value looks like? Does it look like Base64?
Also, in your examples it seems that for the Encrypt, you specify an Encoding value, while you don't on the Decrypt. Also, on the Decrypt, you have the same value as in the Encrypt, I assume this is just an example? Because otherwise it obviously doesn't work.