TIMAI2
October 14, 2021, 2:01pm
1
### There appears to be a problem when trying to compile an app
### with this extension. I am looking into a fix for this.
A simple enough extension prompted by a suggestion by @Peter
This extension provides for text encoding to Base32, Base45, Base58 ,Base64 and Base85.
Blocks and Usage
AIX
v1
uk.co.metricrat.basesloaded.aix (11.3 KB)
v2
uk.co.metricrat.basesloadedv2.aix (15.8 KB)
Credits
@shreyash for guidance and for RUSH
To all the code writers on github who provided java files to make this happen
https://github.com/ehn-dcc-development/base45-java
https://gist.github.com/vrotaru/1753908
https://github.com/fzakaria/ascii85
Versions
v1 - Base32, Base45 , Base58 and Base64
v2 - Base32, Base45, Base58, Base64 and Base85
Available for use in any MIT AppInventor projects or competitions
#####################################################################
This work by TIMAI2 is licensed under a
Creative Commons Attribution-ShareAlike 4.0 Unported License with attribution.
Please use name = TIMAI2 and link to this source page when giving credit.
#####################################################################
20 Likes
I feel like a trick was missed here with a "All your base are belong to us" reference.
6 Likes
TIMAI2
October 14, 2021, 2:08pm
3
Only because I am out of touch, and never played Zero Wing, my misspent years weren't in the 90's
Also no emoji for Zero Wing
7 Likes
Peter
October 14, 2021, 3:22pm
4
shouldn't this be a base45string?
4 Likes
TIMAI2
October 14, 2021, 3:51pm
5
Well spotted! Yes it should.
3 Likes
TIMAI2
October 14, 2021, 3:57pm
6
Image of blocks and aix corrected
5 Likes
FWIW, there's also a Base 85 which will give a slightly more compact representation than base 64:
Ascii85, also called Base85, is a form of binary-to-text encoding developed by Paul E. Rutter for the btoa utility. By using five ASCII characters to represent four bytes of binary data (making the encoded size .mw-parser-output .frac{white-space:nowrap}.mw-parser-output .frac .num,.mw-parser-output .frac .den{font-size:80%;line-height:0;vertical-align:super}.mw-parser-output .frac .den{vertical-align:sub}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidde...
2 Likes
TIMAI2
October 15, 2021, 8:41pm
10
Base85 encode and decode added with v2
3 Likes