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?