Customizing a Encrypted value with a Script

Within a script we are doing a API call to get an encrypted value then we take that pass in a URL to be decrypted.

However in this process when there is a space it inserts %20 to account for it therefore not recognized when trying to decrypt therefore generates an error.

Same is true when the encrypt value has a + sign. when we pass this in the URL we actually pass the value but after passing it converts the + sign to %20 and again fail to decrypt. Now when there is a + sign if we manually convert that to %2B and pass that, the decryption works.

Looking for advice to see if there is a way within the script to take the received encrypted value, search for a space or + sign and if either exist replace this with %2B and pass that in the URL?

Are you sure you mean encryption? It sounds like you're talking about URI encoding, which is a normal part of working with REST APIs. It's unclear what you're specifically talking about though. Can you be specific about exactly what you're doing or having an issue with?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.