{"repo":"cryptocoinjs/base-x","free":true,"listed":false,"github":"https://github.com/cryptocoinjs/base-x","clone":"git clone https://github.com/cryptocoinjs/base-x.git","description":"Encode/decode any base","language":"JavaScript","stars":338,"topics":["bitcoin","base58","base","encoding","decoding","alphabet"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"base-x Fast base encoding / decoding of any given alphabet using bitcoin style leading zero compression. WARNING: This module is NOT RFC3548 compliant, it cannot be used for base16 (hex), base32, or base64 encoding in a standards compliant manner. Example Base58 Alphabets See below for a list of commonly recognized alphabets, and their respective base. Base Alphabet ------------- ------------- 2 01 8 01234567 11 0123456789a 16 0123456789abcdef 32 0123456789ABCDEFGHJKMNPQRSTVWXYZ 32 ybndrfg8ejkmcpqxot1uwisza345h769 (z-base-32) 36 0123456789abcdefghijklmnopqrstuvwxyz 58 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz 62 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 64 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ 67 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789- .! How it works It encodes octet arrays by doing long divisions on all significant digits in the array, creating a representation of that number in the new base. Then for every leading zero in the input (not significant as a number) it will encode as a single leader character. This is the first in the alphabet and will decode as 8 bits. The other characters depend upon the base. For example, a base58 alphabet packs roughly 5.858 bits per character. This means the encoded string 000f (using a base16, 0-f alphabet) will actually decode to 4 bytes unlike a canonical hex encoding which uniformly packs 4 bits into each character. While unusual, this does mean th","default_branch":null,"files":null,"tree":[],"storefront":"/r/cryptocoinjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cryptocoinjs/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."}