1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Armoire is a small library for managing credentials, generating
//! passwords, and working with secure OS-backed secrets.
//!
//! It provides:
//! - [`Credential`] for username/password login records
//! - [`passwords`] for configurable password generation
//! - [`secrets`] for secure secret storage abstractions
//!
//! # Example
//!
//! ```rust
//! use armoire::{
//! passwords::{Characters, Generator},
//! secrets::Secret,
//! Credential,
//! };
//!
//! fn main() {
//! let credential = Credential::new(
//! "Example Service".to_string(),
//! "alice".to_string(),
//! "super-secret-password".to_string(),
//! Some("https://example.com/login".to_string()),
//! );
//!
//! let generator = Generator::new(
//! Characters::LOWERCASE | Characters::UPPERCASE | Characters::NUMERIC,
//! );
//! let generated_password = generator.generate(24);
//!
//! let api_secret = Secret::new("example_api_key".to_string(), "key-123".to_string());
//!
//! assert_eq!(credential.name(), "Example Service");
//! assert_eq!(generated_password.len(), 24);
//! assert_eq!(api_secret.name(), "example_api_key");
//! }
//! ```
//!
compile_error!;
pub use ;