bidirectional_hash 0.1.0

A simple implementation of a bidirectional hash function using a Feistel network.
Documentation
  • Coverage
  • 0%
    0 out of 9 items documented0 out of 2 items with examples
  • Size
  • Source code size: 5.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 334.17 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • magicfoodhand/bidirectional_hash
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • inapinch-io

bidirectional hash

A simple bidrectional hash implementation based on this Psuedo Encrypt algorithm, which is a Feistel network, with support up to 128 bit numbers.

Usage

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);
}