{"id":13731514,"url":"https://github.com/Kronuz/base-x","last_synced_at":"2025-05-08T04:34:09.407Z","repository":{"id":137634659,"uuid":"110565948","full_name":"Kronuz/base-x","owner":"Kronuz","description":"BaseX encoder / decoder for C++","archived":false,"fork":false,"pushed_at":"2018-11-22T21:35:30.000Z","size":87,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T07:39:05.699Z","etag":null,"topics":["alphabet","base","base58","bitcoin","decoding","encoding"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kronuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-13T15:31:31.000Z","updated_at":"2024-10-02T07:09:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"a94cfdfd-dd7e-47c4-b382-e4179759e8bc","html_url":"https://github.com/Kronuz/base-x","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":"0.14516129032258063","last_synced_commit":"a85f98fb4ed52c2f4029a4b6ac1ef0bafdfc56f5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kronuz%2Fbase-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kronuz%2Fbase-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kronuz%2Fbase-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kronuz%2Fbase-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kronuz","download_url":"https://codeload.github.com/Kronuz/base-x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224702565,"owners_count":17355574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alphabet","base","base58","bitcoin","decoding","encoding"],"created_at":"2024-08-03T02:01:31.764Z","updated_at":"2025-05-08T04:34:09.399Z","avatar_url":"https://github.com/Kronuz.png","language":"C++","readme":"﻿# base-x [![License][license-img]][license-url] [![GitHub Stars][stars-img]][stars-url] [![GitHub Forks][forks-img]][forks-url] [![GitHub Watchers][watchers-img]][watchers-url] [![Tweet][tweet-img]][tweet-url]\n\n[![Build Status](https://travis-ci.org/Kronuz/base-x.svg?branch=master)](https://travis-ci.org/Kronuz/base-x)\n\n\n### BaseX encoder / decoder for C++\n\nThis is a fast base encoder / decoder of any given alphabet.\n\n\n#### Example\n\n``` cpp\n// example.cc\n// g++ -std=c++14 -o example example.cc\n\n#include \u003ciostream\u003e\n#include \"base_x.hh\"\n\nint main() {\n    auto encoded = Base58::base58().encode(\"Hello world!\");\n\n    std::cout \u003c\u003c encoded \u003c\u003c std::endl;\n    // =\u003e 1LDlk6QWOejX6rPrJ\n\n    return 0;\n}\n```\n\n\n#### Compilation\n\n* g++ and clang++ are supported.\n* C++14 is required.\n\n\n### Alphabets\n\nSee below for a list of commonly recognized alphabets, and their respective base.\n\nBase | Factory             | Alphabet\n-----|---------------------|-------------\n   2 | base2::base2()      | `01`\n   2 | base8::base8()      | `01234567`\n  11 | bas11::bas11()      | `0123456789a`\n  16 | base16::base16()    | `0123456789abcdef`\n  32 | base32::base32()    | `0123456789ABCDEFGHJKMNPQRSTVWXYZ`\n  36 | base36::base36()    | `0123456789abcdefghijklmnopqrstuvwxyz`\n  58 | base58::base58()    | `123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`\n  58 | base58::bitcoin()   | `123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`\n  58 | base58::gmp()       | `0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv`\n  58 | base58::ripple()    | `rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz`\n  58 | base58::flickr()    | `123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ`\n  62 | base62::base62()    | `0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`\n  62 | base62::inverted()  | `0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`\n  64 | base64::base64()    | `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`\n  64 | base64::urlsafe()   | `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`\n  66 | base66::base66()    | `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.!~`\n\n\n### How it works\n\nIt encodes octet arrays by doing long divisions on all significant digits in the\narray, creating a representation of that number in the new base.\n\n**If you need standard hex encoding, or base64 encoding, this module is NOT\nappropriate.**\n\n\n## Author\n[**German Mendez Bravo (Kronuz)**](https://kronuz.io/)\n\n[![Follow on GitHub][github-follow-img]][github-follow-url]\n[![Follow on Twitter][twitter-follow-img]][twitter-follow-url]\n\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.\n\nCopyright (c) 2017 German Mendez Bravo (Kronuz) @ german dot mb at gmail.com\n\n\n[license-url]: https://github.com/Kronuz/base-x/blob/master/LICENSE\n[license-img]: https://img.shields.io/github/license/Kronuz/base-x.svg\n[stars-url]: https://github.com/Kronuz/base-x/stargazers\n[stars-img]: https://img.shields.io/github/stars/Kronuz/base-x.svg?style=social\u0026amp;label=Stars\n[forks-url]: https://github.com/Kronuz/base-x/network/members\n[forks-img]: https://img.shields.io/github/forks/Kronuz/base-x.svg?style=social\u0026amp;label=Forks\n[watchers-url]: https://github.com/Kronuz/base-x/watchers\n[watchers-img]: https://img.shields.io/github/watchers/Kronuz/base-x.svg?style=social\u0026amp;label=Watchers\n[tweet-img]: https://img.shields.io/twitter/url/https/github.com/Kronuz/base-x.svg?style=social\n[tweet-url]: https://twitter.com/intent/tweet?text=Base-X+encoding%2Fdecoding+for+modern+C%2B%2B+by+%40germbravo:\u0026url=https%3A%2F%2Fgithub.com%2FKronuz%2Fbase-x\n[github-follow-url]: https://github.com/Kronuz\n[github-follow-img]: https://img.shields.io/github/followers/Kronuz.svg?style=social\u0026label=Follow\n[twitter-follow-url]: https://twitter.com/intent/follow?screen_name=germbravo\n[twitter-follow-img]: https://img.shields.io/twitter/follow/germbravo.svg?style=social\u0026label=Follow\n","funding_links":[],"categories":["Maths"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKronuz%2Fbase-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKronuz%2Fbase-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKronuz%2Fbase-x/lists"}