libbasen v1.1.0
encoding/decoding from arbitrary base
Loading...
Searching...
No Matches
libbasen

c++20 encoding/decoding from arbitrary base

Packaging status latest packaged version(s)

Contents

Installation

Package

Packaging status

Meson

For cli tool you should have argparse as make dependency.

meson setup build --buildtype=release --prefix=/usr
cd build
meson install

Documentation

Available here

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 for adding all contributors usernames and their number of commits to AUTHORS file.

Now we would like to implement the following features:

  • Base32
  • BCH
  • Bech32

For build with with debug flags:

meson setup build-dev -Db_coverage=true
cd build-dev
meson compile

For build tests (needed gtest package as dependency):

meson test

For generating coverage:

ninja coverage

⬆️ Contents