Replying to Avatar calle

I've been reading up on different text-based encoding schemes yesterday. Anything above base64 is really getting esotheric. There is base85 which is apparently used by adobe PDF. It maps 4 bytes of binary data into 5 ASCII characters which is a few percentage points more efficiency than base64.

Then there is Base2048 and Base65536 where it gets really weird because they use a much larger part (or the entirity!) of the unicode character space (all international characters, all the strange symbols etc). I don't know what these tokens would look like but Base65536 can encode 2 bytes of data into a single character. That means a 100 byte Cashu token could be 50 chars (that's insane). I don't know if all compures would be able to render these characters but if so, you could basically fit ~2.85 Cashu tokens into a single 140 char SMS.

Wonder why I haven't seen people abuse this to store large chunks of data on Twitter or other text-based media. I've seen projects that abuse Twitter as cloud storage (by storing data in forms of tweets) but they usually use base64.

Avatar
calle 1y ago

nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s still base64 tho

nostr:nevent1qqs2xvdej20aauz3ljjqn930dzgje6rdzmc3cyfvcurxkas9qeydymgpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtczypgdjn7zmpvqc6ptqud9gtutrcc6yq9s2z96h9dr80hss4wl9qwkxqcyqqqqqqgcurgc8

Reply to this note

Please Login to reply.

Discussion

No replies yet.