proc-hash

Crates.ioproc-hash
lib.rsproc-hash
version0.1.2
sourcesrc
created_at2023-07-17 16:47:27.000264
updated_at2023-07-19 19:07:26.880778
descriptionEmbed hashed strings at compile time
homepage
repositoryhttps://github.com/lucascherzer/proc-hash
max_upload_size
id918665
size8,498
Luca Scherzer (lucascherzer)

documentation

README

proc-hash

proc-hash provides functionality for embedding hashed values at compile time.

Implemented Hashing Algorithms

  • MD5
  • BLAKE2b (512 bit)
  • BLAKE2s (256 bit)
  • SHA-3
  • Whirlpool

Example

use proc_hash::include_blake512;

assert_eq!(
    include_blake512!("https://www.youtube.com/watch?v=dQw4w9WgXcQ"),
    "7eda814eb5fe31a58a639842aebf554b505bb5e65bdcd1052ee035a1227d353c590580b49c453606e268b4a4f0c7862dff5fa748cd4b0e60c1bcd77c92dd7fd8"
);
Commit count: 20

cargo fmt