I want to store cookie data in a compact form.
Is there such a thing as a compression algorithm that creates a secure URL? Currently my approach
String jsonData = GSON.toJson(data); byte[] cookieBinaryData = jsonData.getBytes("UTF-8"); byte[] cookieSnappyData = Snappy.compress(cookieBinaryData); String cookieBase64Data = new Base64(true).encodeToString(cookieSnappyData);
From this cookieBase64Data , cookieBase64Data is stored inside the cookie. I would be happy to skip the Base64 host.
source share