Crates.io | passgen-lib |
lib.rs | passgen-lib |
version | 1.2.1 |
created_at | 2024-11-30 16:20:34.997199+00 |
updated_at | 2025-07-10 19:44:24.614345+00 |
description | Library for generating cryptographically secure passwords/tokens and other sets and sequences. |
homepage | https://passgen.mamont.xyz |
repository | https://github.com/mammothcoding/passgen-lib |
max_upload_size | |
id | 1466748 |
size | 359,608 |
Readme in different languages: EN RU
Library for generating cryptographically secure passwords/tokens and other sets and sequences.
CSPRNGs Isaac64Rng and Hc128Rng are used.
Cargo.toml
:[dependencies]
passgen-lib = "1.2.1"
let result = Passgen::new().set_enabled_letters(true).set_enabled_numbers(true).generate(30);
let result = Passgen::default().generate(12);
Including all characters, but the first position in the password is a capital or small letter, the last position is the symbol.
🔸 Excluded ambiguous characters "0oOiIlL1"
.
let result = Passgen::default_strong_and_usab().generate(8);
let result = Passgen::new().set_custom_charset("abcABC123⭕➖❎⚫⬛п₼⁂🙂").generate(12);