Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

488 B
Raw Blame
//! JSON-RPC / CLI controller surface for encryption-focused helpers.

use crate::config::Config;
use crate::core::Outcome;

pub async fn encrypt_secret(config: &Config, plaintext: &str) -> Result<Outcome<String>, String> {
    crate::security::credentials::rpc::encrypt_secret(config, plaintext).await
}

pub async fn decrypt_secret(config: &Config, ciphertext: &str) -> Result<Outcome<String>, String> {
    crate::security::credentials::rpc::decrypt_secret(config, ciphertext).await
}