Crates.io | lore |
lib.rs | lore |
version | 2.1.0 |
source | src |
created_at | 2021-10-26 14:20:40.011135 |
updated_at | 2022-09-20 14:06:36.29713 |
description | Zero-dependency hashing algorithms |
homepage | https://git.palmoe.dk/vodofrede/lore/ |
repository | https://git.palmoe.dk/vodofrede/lore/ |
max_upload_size | |
id | 471942 |
size | 38,746 |
Nightly-only hashing algorithms with a straight-forward API and no required dependencies.
This crate currently implements:
Performance is not a priority of this crate, rather, the primary purpose of this crate is learning, as well as providing tests for the intermediate steps of algorithms. This includes padding, checksums and round step functions.
The functions of this crate should probably not be used for production purposes.
Once slice::array_chunks
is stabilized, this crate can be made to work on stable Rust.
The crate could be rewritten to use stable already, but this would increase the verbosity of many expressions.
Serde support is included, and is gated behind the serde
feature.
Basic usage:
let input = "lol xd";
let digest = lore::md5(input);
assert_eq!(digest.to_string(), "982d7f24f8985a6baa5cf129acc73561");