| Crates.io | llm-config-crypto |
| lib.rs | llm-config-crypto |
| version | 0.5.0 |
| created_at | 2025-11-21 21:28:33.899214+00 |
| updated_at | 2025-11-21 21:28:33.899214+00 |
| description | Cryptography primitives for LLM Config Manager - AES-256-GCM encryption, key derivation, and secure key management |
| homepage | https://github.com/globalbusinessadvisors/llm-config-manager |
| repository | https://github.com/globalbusinessadvisors/llm-config-manager |
| max_upload_size | |
| id | 1944290 |
| size | 55,633 |
Cryptography primitives for LLM Config Manager providing AES-256-GCM encryption, key derivation, and secure key management.
Add this to your Cargo.toml:
[dependencies]
llm-config-crypto = "0.5.0"
use llm_config_crypto::{CryptoManager, KeyDerivation};
// Create a crypto manager
let crypto = CryptoManager::new()?;
// Encrypt sensitive data
let plaintext = b"my-secret-value";
let encrypted = crypto.encrypt(plaintext)?;
// Decrypt data
let decrypted = crypto.decrypt(&encrypted)?;
assert_eq!(plaintext, decrypted.as_slice());
use llm_config_crypto::KeyDerivation;
// Derive a key from a password
let password = "my-secure-password";
let salt = KeyDerivation::generate_salt()?;
let key = KeyDerivation::derive_key(password, &salt)?;
Benchmarks on modern hardware:
This crate requires Rust 1.75 or later.
Licensed under the Apache License, Version 2.0. See LICENSE for details.
See CONTRIBUTING.md for contribution guidelines.