# libbasen c++ encoding/decoding from arbitrary base Packaging status latest packaged version(s) ## Contents - [Installation](#installation) - [Documentation](#documentation) - [Usage](#usage) - [Contributing](#contributing) ## Installation Automatically from specified repositories: [![Packaging status](https://repology.org/badge/vertical-allrepos/libbasen.svg)](https://repology.org/project/libbasen/versions) Manually using make: ``` make -j $(nproc) sudo make i USRDIR=(Your installation dir) ``` Uninstall: ``` sudo make uni USRDIR=(Your installation dir) ``` ## Documentation Available [here](https://vsek1ro.github.io/libbasen) ## Usage libbasen package provides `basen` cli tool. Below are examples of use: ``` echo "hello world" | basen -t hex > encoded.data ``` ``` basen -t hex -d < encoded.data > decoded.data ``` ``` echo "arbitrary alphabet" | basen -a "0123ABCD" ``` ## Contributing Main branch is under protection rules, so you should create pull request. After merging will be runned [authors.sh](https://github.com/vSEK1RO/libbasen/blob/main/authors.sh) for adding all contributors usernames and their number of commits to [AUTHORS](https://github.com/vSEK1RO/libbasen/blob/main/AUTHORS) file. Now we would like to implement the following features: - Base32 - BCH - Bech32 For build with with debug flags: ``` make -j $(nproc) DEBUG= ``` For build tests (needed gtest package as dependency): ``` make tests -j $(nproc) DEBUG= ``` For generating coverage: ``` make cover -j $(nproc) DEBUG= ``` [⬆️ Contents](#contents)