{"repo":"Kronuz/base-x","free":true,"listed":false,"github":"https://github.com/Kronuz/base-x","clone":"git clone https://github.com/Kronuz/base-x.git","description":"BaseX encoder / decoder for C++","language":"C++","stars":14,"topics":["bitcoin","base58","base","encoding","decoding","alphabet","compile-time","constexpr"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"base-x BaseX encoder / decoder for C++. What it is base-x is a header-only library that encodes and decodes binary data in an arbitrary base, given the alphabet for that base. It treats the input as one big unsigned integer and rewrites it in the target base, so it works for base2 all the way up to base66 and anything in between. It ships ready-made alphabets for the common ones (base16, base32, base58, base62, base64 and more), including Bitcoin, Ripple, Flickr, Crockford and the RFC 4648 variants. On top of plain base conversion it supports optional check digits and checksums, case-insensitive alphabets, character translation (so visually ambiguous glyphs decode to the same value), and RFC 4648 style block padding. It is two headers: base x.hh for the codec and the alphabet catalog, and uinteger t.hh for the arbitrary-precision unsigned integer it builds on. When to use it / when not Use it when you need compact, human-friendly text for binary blobs (IDs, hashes, keys) and you care about the exact alphabet. base58 and base62 avoid the padding, + , / and look-alike characters that make base64 awkward in URLs and when read aloud. The check-digit and checksum modes catch transcription errors, which is handy for short identifiers people type or copy. Skip it if you need standard, byte-aligned hex or base64 output. Because it encodes the whole input as a single integer (long division, not fixed-size blocks), the default alphabets are not interchangeable with xxd or a stock base6","default_branch":null,"files":null,"tree":[],"storefront":"/r/Kronuz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Kronuz/base-x/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}