rspricklybird
Overview
This repository contains a rust implementation of the pricklybird format version v1 in the pricklybirdlib crate.
It also provides a command line utility to convert from and to pricklybird strings called prbiconv.
prbiconv
Usage
prbiconv is a command line utility for conversion that is written in rust and uses pricklybirdlib in the background.
Input is read from stdin and output written to stdout.
By default conversion from pricklybird string to bytes is attempted.
This can be explicitly set using the -b flag.
We use xxd in these examples to convert raw binary to hexadecimal.
% echo "flea-flux-full" | prbiconv -b | xxd -ps
4243
To convert bytes to a pricklybird string use the -p flag.
% echo "4243" | xxd -r -p | prbiconv -p
flea-flux-full
Building from source
git clone https://github.com/ndornseif/rspricklybird.git
cd rspricklybird/prbiconv
cargo build --release
pricklybirdlib
Usage
use ;
let data = ;
let code = convert_to_pricklybird;
assert_eq!;
let recovered_data = convert_from_pricklybird.unwrap;
assert_eq!;
License
rspricklybird, pricklybirdlib and prbiconv are distributed under the terms of the MIT license.