Legacy Dev Forum Posts

 View Only

Sign Up

Customizing a Encrypted value with a Script

  • 1.  Customizing a Encrypted value with a Script

    Posted 06-05-2025 18:03

    lacanady01 | 2023-05-17 19:01:05 UTC | #1

    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?


    tim.smith | 2023-05-23 17:27:08 UTC | #2

    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?


    system | 2023-06-23 17:27:40 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 19984