Crates.io | md5crypt |
lib.rs | md5crypt |
version | 1.0.0 |
created_at | 2025-07-15 06:45:54.589864+00 |
updated_at | 2025-07-15 06:45:54.589864+00 |
description | Pure Rust implementation of the md5crypt password hashing function. |
homepage | https://sr.ht/~oopsbagel/md5crypt-rs/ |
repository | https://git.sr.ht/~oopsbagel/md5crypt-rs |
max_upload_size | |
id | 1752683 |
size | 8,293 |
Pure Rust implementation of the md5crypt password hashing function.
md5crypt is considered cryptographically broken and unsafe for use as a password scrambler. This crate is provided for interoperability with legacy systems only.
See the following links for more information:
use md5crypt::md5crypt;
let password = b"hunter2";
let salt = b"1234abcd";
assert_eq!(md5crypt(password, salt), b"$1$1234abcd$k941IFPqhCBpKvhOnZqRd/");