Hacker News new | ask | show | jobs
by pulse7 1825 days ago
One could take 10 digits, 26 letters and 5 operands (+ - * / %) for Base41 encoding. 41 * 41 * 41 = 68921 is enough for 2 bytes (65536 combinatons).
1 comments

/ and % don't play well with URLs. I would take + - * . $ instead.
'+' doesn't play well with URLs
Less so than %, for example. It is classified as a sub-delim subset of reserved characters [1], meaning that they won't conflict with the generic URI components syntax and thus are reasonably safe. (* and $ are also included in this set.) You might be worrying that it gets "converted" into %2B but this conversion is not required and fully reversible.

[1] https://datatracker.ietf.org/doc/html/rfc3986#section-2.2