basexx.lua library for use with Picotron, (very) slightly modified version of https://github.com/aiq/basexx/blob/master/lib/basexx.lua
Install from BBS with load load #basexx
and run it with crtl+r
A file will be created at /appdata/system/lib/basexx.lua
Usage:
include("/appdata/system/lib/basexx.lua") string = "hello world" print("Raw: " .. string) print("Bit (Base2)" .. basexx.to_bit(string)) print("Hex (Base16) " .. basexx.to_hex(string)) print("Base32 " .. basexx.to_base32(string)) print("Base64 " .. basexx.to_base64(string)) print("Crockford " .. basexx.to_crockford(string)) |
Output:
Functions:
--Bit (Base2) basexx.to_bit(string) basexx.from_bit(string) --Hex (Base16) basexx.to_hex(string) basexx.from_hex(string) --Base32 basexx.to_base32(string) basexx.from_base32(string) --Base64 basexx.to_base64(string) basexx.from_base64(string) --Crockford basexx.to_crockford(string) basexx.from_crockford(string) |
dynInclude compatible: https://www.lexaloffle.com/bbs/?tid=141042
[Please log in to post a comment]