rune-hex
Hex encoding and decoding for byte slices and files.
Converts between raw bytes and hexadecimal strings. Decoding accepts lowercase,
uppercase, mixed-case, and optional 0x prefix. The library has zero dependencies.
Installation
[]
= "0.1"
CLI
Usage
Library
use ;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
CLI
# Encode a file
# Encode stdin
|
# 68656c6c6f
# Uppercase output
|
# 68656C6C6F
# Decode hex to raw bytes
# Decode from stdin
|
# hello
# Decode with 0x prefix
License
MIT