# basexx **Repository Path**: mirrors_LuaDist/basexx ## Basic Information - **Project Name**: basexx - **Description**: A Lua library which provides base2(bitfield), base16(hex), base32(crockford/rfc), base64 decoding and encoding. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #basexx A Lua library which provides base2(bitfield), base16(hex), base32(crockford/rfc), base64 decoding and encoding. ##from_bit / to_bit Converts a byte string to a bitfield string. * 0, O and o maps to the same value * 1, I, i, L and l maps to the same value basexx.to_bit( "ACDC" ) --> 01000001010000110100010001000011 basexx.from_bit( "01000001010000110100010001000011" ) --> ACDC basexx.from_bit( "o1ooooo1o1oooo11" ) --> AC basexx.from_bit( "OioooooiOiooooii" ) --> AC ##from_hex / to_hex Converts a byte string to a uppercase hex data string. basexx.to_hex( "Hello world!" ) --> 48656C6C6F20776F726C6421 basexx.from_hex( "48656C6C6F20776F726C6421" ) --> Hello world! basexx.from_hex( "48656c6c6f20776f726c6421" ) --> Hello world! ##from_base32 / to_base32 Converts a byte string to a base32(_rfc3548_) uppercase data string. * It's case insensitive basexx.to_base32( "chunky bacon!" ) --> MNUHK3TLPEQGEYLDN5XCC=== basexx.from_base32( "MNUHK3TLPEQGEYLDN5XCC===" ) --> chunky bacon! ##from_crockford / to_crockford Converts a byte string to a base32(_crockford_) uppercase data string. The optional check value is not implemented. * It's case insensitive * 1, I, i, L and l maps to the same value * 0, O and o maps to the same value * U, u, V and v maps to the same value (not part of the official description) string.lower( basexx.to_crockford( "Hello World" ) ) --> 91jprv3f41bpywkccg basexx.from_crockford( "axqqeb10d5u20wk5c5p6ry90exqq4uvk44" ) --> Wow, it really works! ##from_base64 / to_base64 Converts a byte string to a base64 data string. basexx.to_base64( "Man") --> TWFu basexx.from_base64( "TWFu" ) --> Man