3 ms·
Another way to generate potentially shorter base64 strings is to use something like Python's `struct` to store packed binary data, and then base64 encode that.
by philwelch 4y ago
Another way to generate potentially shorter base64 strings is to use something like Python's `struct` to store packed binary data, and then base64 encode that. Better yet, if that data payload can be generated server-side, you can also sign that data payload, which allows you to statelessly verify the data payload itself.
(cf. https://docs.python.org/3/library/struct.html https://docs.python.org/3/library/struct.html)