smartpasslib 4.0.0

Smart Passwords Library for Rust: Cryptographic password generation and management without storage. Cross-platform deterministic passwords compatible with Python, JavaScript, Kotlin, Go, and C#.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use criterion::{Criterion, criterion_group, criterion_main};
use smartpasslib::generate_smart_password_sync;

fn benchmark_generate_smart_password(c: &mut Criterion) {
    let secret = "MyStrongSecretPhrase2026!";
    c.bench_function("generate_smart_password_16", |b| {
        b.iter(|| {
            let _ = generate_smart_password_sync(secret, 16);
        })
    });
}

criterion_group!(benches, benchmark_generate_smart_password);
criterion_main!(benches);