6 releases (3 stable)
Uses old Rust 2015
1.0.2 | May 4, 2017 |
---|---|
1.0.1 | Apr 24, 2017 |
0.2.1 | Mar 23, 2017 |
0.1.0 | Mar 21, 2017 |
#19 in #convert-hex
4KB
72 lines
hex2ascii
Command line app that converts hex values to/from ASCII.
Installation
If you've not already done so, install rust: https://www.rust-lang.org/
Then install via cargo using:
$ cargo install hex2ascii
Help
$ hex2ascii -h
hex2ascii 0.2.1
Gavyn Riebau
Converts hex values to ascii
USAGE:
hex2ascii [FLAGS]
FLAGS:
-h, --help Prints help information
-r, --reverse Converts from ascii to hex rather than the other way around
-V, --version Prints version information
-v, --verbose Include verbose output including warning messages written to stderr
Encoding a message into hexadecimal
$ echo "Hello world" | hex2ascii -r
48656c6c6f20776f726c64
Decoding a message from hexadecimal
$ echo "48656c6c6f20776f726c64" | hex2ascii
Hello world
Dependencies
~1.5MB
~25K SLoC