1 unstable release

0.1.0 Dec 22, 2023

#175 in Value formatting

MIT/Apache

12KB
347 lines

Two-Ten

Another silly human readable digest tool

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

twoten

Hash data into two bytes, and turn it into an (exactly) ten byte summary.

Summaries are:

  • A 16-bit fnv1a hash of the data
  • The first 8 bits of the hash are used to select a 6-character word. See WORDS.
  • The next 8 bits of the hash are formatted in an octal format, 000 to 377.

The resulting summary looks like JESTER-123

No runtime deps