#byte-string #byte-vector #hex #representation #structure

hex-string

a data structure for managing hex strings in both string and byte vector representation

1 unstable release

Uses old Rust 2015

0.1.0 Jan 20, 2019

#9 in #byte-vector

Download history 58/week @ 2024-07-22 51/week @ 2024-07-29 61/week @ 2024-08-05 39/week @ 2024-08-12 73/week @ 2024-08-19 52/week @ 2024-08-26 59/week @ 2024-09-02 58/week @ 2024-09-09 70/week @ 2024-09-16 87/week @ 2024-09-23 101/week @ 2024-09-30 60/week @ 2024-10-07 107/week @ 2024-10-14 90/week @ 2024-10-21 101/week @ 2024-10-28 68/week @ 2024-11-04

367 downloads per month
Used in 2 crates

BSD-3-Clause

83KB
142 lines

Contains (rust library, 74KB) result/lib/libhex_string-8e4c740876.rlib

Hex-String

Build Status License

A data structure for managing hex strings and their binary byte vector representations.


lib.rs:

A utilty library for handling Hex strings

The digest operations in sha2 return the result as u8 vectors. But a lot of command line applicaions, like sha256sum, return byte strings. I was unable to find an obvious way to handle this in rust, so this module provides a clear well-defined HexString, loaders from a regular string of hex values and from a vector of bytes, and output representations in both forms.

No runtime deps