2021-10-26 14:20:30 +00:00
|
|
|
# Lore
|
2021-10-26 14:10:29 +00:00
|
|
|
|
2022-09-16 12:10:44 +00:00
|
|
|
Hashing algorithms with a straight-forward API and no dependencies.
|
2021-10-26 14:20:30 +00:00
|
|
|
|
2022-09-16 12:10:44 +00:00
|
|
|
Currently implements:
|
2021-10-26 14:20:30 +00:00
|
|
|
|
2022-09-16 12:10:44 +00:00
|
|
|
- MD2, MD4, and MD5
|
2021-10-26 14:22:45 +00:00
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```rust
|
|
|
|
fn main() {
|
|
|
|
let input = "lol xd";
|
2022-09-16 12:10:44 +00:00
|
|
|
let digest = lore::md5(input);
|
2021-10-26 14:22:45 +00:00
|
|
|
assert_eq!(digest, "982d7f24f8985a6baa5cf129acc73561");
|
|
|
|
}
|
|
|
|
```
|