Skip to content
fotoetiennePublic

About

Concise Binary Decoder - CLI tool for decoding and encoding compact binary (cbor) data

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Concise Binary Decoder

Library for decoding and encoding Concise Binary (cbor) Data

Installation

$ cargo install cbd

Usage

Help:

$ cbd --help
Usage: cbd [OPTIONS]

Options:
  -e, --encode  
  -b, --base64  
  -h, --help    Print help

Decode CBOR into JSON:

$ cat file.cbor | cbd
{"key": "value"}

Decode base64 encoded CBOR into JSON:

$ echo 'oWNrZXlldmFsdWU' | cbd
{"key": "value"}

Encode JSON into CBOR:

$ cat file.json | cbd -e
?ckeyevalue

Encode JSON into base64 encoded CBOR:

$ cat file.json | cbd -e --base64
oWNrZXlldmFsdWU

About

Concise Binary Decoder - CLI tool for decoding and encoding compact binary (cbor) data

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages