Dispnet Hash
Dispnet Hash produces a self descripting hash for easy backwards compatibility. The hash format follows the TLV (type-length-value) pattern.
- First 2 characters are the hash type as integer with a leading 0 (Default is 01 which is Blake3 hash).
- Then come 4 characters as integer with leading 0 which is the length of the bytes from the digest.
- Digest value as hex.
Supported hash algorithm
Abstract hash structur
Hash value structur
| |
Usage
Create a hash
let dispnet_hash = new;
let display_hash = format!;
assert_eq!;
Create a hash with hash type
let dispnet_hash = create;
let display_hash = format!;
assert_eq!;
Get hash parts
let dispnet_hash = "0100324878ca0425c739fa427f7eda20fe845f6b2e46ba5fe2a14df5b1e32f50603215"..unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
Verify Argon2 hash with value
assert!;
Build instruction
1.) Install Rust
2.) Build
.) Test
.) Benchmark
View Html report in target/criterion/report/index.html
Created with Criterion.rs
.) Publish
Made by Christoph Taucher
License MIT