The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
Encryption
AES-256-GCM at-rest crypto for AI memory storage and the encrypt/decrypt RPC surface. Owns the encrypted-payload format, Argon2id password-derived keys, and the data-directory resolver. The encrypt_secret / decrypt_secret RPCs are thin shims that delegate to the credentials domain: this module is intentionally small and composable, not a key-management service.
Public surface
pub struct EncryptedPayload(core.rs:18-26):{ ciphertext, nonce, salt }triple persisted to disk.pub struct EncryptionKey(core.rs:29-32):[u8; 32]AES-256 key wrapper.impl EncryptionKey::derive(password: &str, salt: &[u8]) -> Result<Self, String>(core.rs:35): Argon2id with parametersm=65536, t=3, p=1.pub async fn encrypt_secret(config: &Config, plaintext: &str) -> Result<Outcome<String>, String>(ops.rs:6): RPC handler, delegates tocredentials::rpc::encrypt_secret.pub async fn decrypt_secret(config: &Config, ciphertext: &str) -> Result<Outcome<String>, String>(ops.rs:13): RPC handler, delegates tocredentials::rpc::decrypt_secret.- RPC
encryption.{encrypt_secret, decrypt_secret}, defined inschemas.rs(re-exported viaall_encryption_controller_schemas/all_encryption_registered_controllers). - Constants:
SALT_LENGTH = 16,NONCE_LENGTH = 12,KEY_LENGTH = 32(private but stable parameters).
Calls into
argon2crate forArgon2idpassword-derived keys.aes-gcmcrate forAes256GcmAEAD.crates/openhuman-core/src/config/:Configfor workspace-relative data directory.crates/openhuman-core/src/security/credentials/:credentials::rpc::{encrypt_secret, decrypt_secret}carry the actual key-management responsibility.
Called by
crates/openhuman-core/src/security/credentials/: uses the sameEncryptedPayload/EncryptionKeyprimitives directly when storing per-channel secrets.crates/openhuman-core/src/core/all.rs: registersall_encryption_*controllers so the shell and CLI can encrypt configuration secrets.- Indirect:
crates/openhuman-core/src/memory/,crates/openhuman-core/src/channels/, andcrates/openhuman-core/src/inference/local/rely on the credentials domain (which in turn uses this layer) for secrets at rest.
Tests
- This domain has no
*_tests.rssiblings; the underlying crypto round-trips are exercised bycrates/openhuman-core/src/security/secret_storage/encrypted_store_tests.rsand the credentials tests, which both cover encrypt/decrypt happy paths and tampered-ciphertext rejection.