Solutionunvalidated
Compressing the string using Deflater, GZIP, and encoding the result using Base64 — plain Java. Tension: Any more efficient way — algorithmic, custom encoding, or otherwise — to reduce the size of a large string, while keeping it reversible. Outcome: So using compression is the best idea. If it does not work, you have to accept that sometimes it's not possible.
810b1d04-17af-4397-b427-6667f4907913
Compressing the string using Deflater, GZIP, and encoding the result using Base64 — plain Java. Tension: Any more efficient way — algorithmic, custom encoding, or otherwise — to reduce the size of a large string, while keeping it reversible. Outcome: So using compression is the best idea. If it does not work, you have to accept that sometimes it's not possible.