| Crates.io | bidirectional_hash |
| lib.rs | bidirectional_hash |
| version | 0.1.0 |
| created_at | 2024-06-17 03:03:25.867214+00 |
| updated_at | 2024-06-17 03:03:25.867214+00 |
| description | A simple implementation of a bidirectional hash function using a Feistel network. |
| homepage | |
| repository | https://gitlab.com/magicfoodhand/bidirectional_hash |
| max_upload_size | |
| id | 1273978 |
| size | 5,180 |
A simple bidrectional hash implementation based on this Psuedo Encrypt algorithm, which is a Feistel network, with support up to 128 bit numbers.
cargo add bidirectional_hash
use bidirectional_hash::hash;
fn main() {
let x: u64 = 123456789;
let h = hash(x.into()); // Input::U64(x)
assert_eq!(hash(h), x);
}