I am new to Java and I am trying to write a utility API to encrypt / decrypt a string. I have my controller and request mapping, and I'm working in encrypt / decrypt mode.
The problem I have is decrypting a string in which there is a forward slash ('/'). If I leave unencoded in the URL (like http: // localhost: 8080 / api / package / util / decrypt / oJfTtchpM9WC / 4Oqpu7FZQ == ) then url routing breaks (which is clear why).
If I change the URL to symbolic words (such as
http: // localhost: 8080 / api / package / util / decrypt / oJfTtchpM9WC% 2F4Oqpu7FZQ == ) then the values in the path The variable is empty
Also keep in mind that
http :. // localhost:. 8080 / api / package / util / decrypt / oJfTtchpM9WC (no slash) works fine
It seems that whenever I put '%' in the path variable, I get feedback Finds an empty page in I do not hit the method
Can anyone explain to me what is happening and how can I work it out?
The base 64 algorithm encodes the binary data using the URL-secured variation, but does not share the output. Emergence of url-secured variance - and instead of + and / character / note: no padding is added.
No comments:
Post a Comment