Crate qudag_vault_core

Source
Expand description

Quantum-resistant password vault library for QuDAG.

This library provides a secure password management system using QuDAG’s quantum-resistant cryptographic primitives and DAG-based storage.

§Features

  • Quantum-Resistant Encryption: Uses ML-KEM (Kyber) for key encapsulation and ML-DSA (Dilithium) for digital signatures
  • DAG-Based Storage: Stores secrets as nodes in a directed acyclic graph
  • Memory Safety: Automatic zeroization of sensitive data
  • Secure Key Derivation: Argon2id for password-based key derivation

§Example

use qudag_vault_core::{Vault, VaultError};

// Create a new vault
let mut vault = Vault::create("vault.qdag", "master_password")?;

// Add a secret
vault.add_secret("email/work", "user@example.com", Some("password123"))?;

// Retrieve a secret
let secret = vault.get_secret("email/work")?;
println!("Username: {}", secret.username);

// Export the vault
vault.export("backup.qdag")?;

Re-exports§

pub use error::VaultError;
pub use error::VaultResult;
pub use secret::SecretEntry;
pub use secret::SecretMetadata;
pub use vault::Vault;
pub use crypto::VaultCrypto;
pub use crypto::VaultKeyPair;
pub use utils::CharacterSet;

Modules§

crypto
Cryptographic operations for the vault with quantum-resistant primitives.
dag_storage
DAG-based storage for vault secrets with QuDAG integration.
error
Error types for the vault library.
kdf
Key derivation functions for password-based encryption.
secret
Secret entry types and metadata.
utils
Utility functions for the vault library.
vault
Main vault implementation combining all components.