Hashing algorithms with a straight-forward API and optional dependencies.
Go to file
vodofrede 6b02b20dad release 2.1.0 2022-09-20 16:00:53 +02:00
src updated documentation 2022-09-20 14:19:20 +02:00
.gitignore Init commit 2021-10-26 16:20:30 +02:00
Cargo.lock release 2.1.0 2022-09-20 16:00:53 +02:00
Cargo.toml release 2.1.0 2022-09-20 16:00:53 +02:00
LICENSE Init commit 2021-10-26 16:20:30 +02:00
README.md improved overall crate documentation 2022-09-17 15:49:17 +02:00
rust-toolchain added md2 and md4, updated API to v2 2022-09-16 14:07:57 +02:00

README.md

Lore

Nightly-only hashing algorithms with a straight-forward API and no required dependencies.

This crate currently implements:

  • MD2, MD4, and MD5
  • SHA-1

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.

Features

Serde support is included, and is gated behind the serde feature.

Examples

Basic usage:

let input = "lol xd";
let digest = lore::md5(input);
assert_eq!(digest.to_string(), "982d7f24f8985a6baa5cf129acc73561");