I want to pass some JSON code in the URL as a get parameter, but I don't want anyone will know what I'm sending and also I don't want to store in the DB the data.
Now I'm using base64 encoding to encrypt the JSON but it isn't safe.
Does anyone have another idea how can I do that?
$json = '{"key":"value"}';
$encoded_json = base64_encode($json);
header("Location: http://domain.com/data={$encoded_json}");