fle-rust

Installation
SKILL.md

Field-Level Encryption — Rust

Rust SDK 1.0 does not support Field-Level Encryption. There is no CryptoManager API.

Alternatives

Option 1 — Encrypt in application code before writing:

use aes_gcm::{Aes256Gcm, Key, Nonce};
use aes_gcm::aead::{Aead, NewAead};

// Encrypt the sensitive field value before building the document
let key = Key::from_slice(b"an example very very secret key."); // 32 bytes
let cipher = Aes256Gcm::new(key);
let nonce = Nonce::from_slice(b"unique nonce"); // 12 bytes

let ciphertext = cipher.encrypt(nonce, ssn.as_bytes()).unwrap();
let encrypted_ssn = base64::encode(&ciphertext);
Installs
2
First Seen
Jun 18, 2026
fle-rust — couchbaselabs/agent-skills