<div align="center">
[](https://github.com/t1ltxz-gxd/vaultkey)
<p>
Rust library for generating secure and customizable passwords. With support for various character sets and lengths,
it helps you create strong and random passwords for any use case, ensuring high security for your applications.
</p>
---
[](https://github.com/t1ltxz-gxd/vaultkey/blob/main/LICENSE "license")
[](https://github.com/t1ltxz-gxd/vaultkey/tests)
[](https://github.com/t1ltxz-gxd/vaultkey/network/members)
[](https://github.com/t1ltxz-gxd/vaultkey/graphs/contributors)
[](https://github.com/t1ltxz-gxd/vaultkey/stargazers)
[](https://github.com/t1ltxz-gxd/vaultkey/issues)
[](https://www.rust-lang.org/ "Powered by Rust")
</div>
___
## 🧩 Installation
Add the following to your `Cargo.toml` file:
```toml
[dependencies]
vaultkey = {version = "*"}
```
## 📖 Usage
### Generate a random password
```rust
use vaultkey::PasswordBuilder;
fn main() {
for i in 0..10 {
let password = PasswordBuilder::default()
.length(50)
.with_uppercase(true)
.min_digits(2)
.min_specials(2)
.avoid_ambiguous(true)
.build()
.unwrap();
println!("Generated password {}: {}", i + 1, password);
}
}
```
### Output:
```
Generated password 1: Y*4M>{e/>rDh:j=?K[]@9E#s|L&@k=BSpq9L+r@*RK_u>D;a-5
Generated password 2: 6.8CRjvc%4?JB[#$f3qmkX8dB@jC{|$-}4Ruh%+j|q)$raBv}Y
Generated password 3: qWTo%{^8,=bYQ]y3{3=xV869_Dy67%q7wbq!-xR.gv,eF]f>E}