#pbkdf2 #binding #hmac-sha1 #faster #u8 #hmac-sha512 #hmac-sha256

sys fastpbkdf2

A rust binding for fastpbkdf2. This is a PBKDF2 with HMAC-SHA1, HMAC-SHA256 and HMAC-SHA512 and is faster than other implementations.

1个不稳定版本

使用旧的Rust 2015

0.1.0 2015年10月11日

#8 in #pbkdf2

Download history 8/week @ 2023-12-18 2/week @ 2023-12-25 8/week @ 2024-01-08 7/week @ 2024-01-15 11/week @ 2024-02-05 9/week @ 2024-02-12 29/week @ 2024-02-19 30/week @ 2024-02-26 24/week @ 2024-03-04 49/week @ 2024-03-11 24/week @ 2024-03-18 24/week @ 2024-03-25 64/week @ 2024-04-01

166 每月下载量
用于 2 crates

CC0 许可证

41KB
809

rust-fastpbkdf2

这是一个 fastpbkdf2 的 Rust 绑定。

Build Status

接口

pub fn pbkdf2_hmac_sha1(password: &[u8], salt: &[u8], iterations: u32, out: &mut[u8]);
pub fn pbkdf2_hmac_sha256(password: &[u8], salt: &[u8], iterations: u32, out: &mut[u8]);
pub fn pbkdf2_hmac_sha512(password: &[u8], salt: &[u8], iterations: u32, out: &mut[u8]);

性能

散列 rust-fastpbkdf2 ring rust-crypto
SHA1 380ms 5299ms (13.9x) 41015ms (108x)
SHA256 855ms 8244ms (9.6x) 71521ms (84x)
SHA512 1329ms 15172ms (11.4x) 81378ms (61x)

在Intel i3-2100T CPU @ 2.50GHz的64位模式下,220次迭代。

构建和测试

您需要 OpenSSL 来编译 fastpbkdf2cargo build 构建项目,cargo test 运行测试。

许可证

CC0.

作者

Joseph Birr-Pixton [email protected]

依赖关系

~54KB