cortexai-encryption 0.1.0

At-rest encryption for sensitive data in Cortex: AES-GCM and ChaCha20-Poly1305
Documentation
[package]
name = "cortexai-encryption"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
description = "At-rest encryption for sensitive data in Cortex: AES-GCM and ChaCha20-Poly1305"
keywords = ["encryption", "security", "aes", "cryptography", "agents"]
categories = ["cryptography", "authentication"]

[features]
default = ["aes"]
aes = ["dep:aes-gcm"]
chacha = ["dep:chacha20poly1305"]
full = ["aes", "chacha"]

[dependencies]
# Core crypto
aes-gcm = { version = "0.10", optional = true }
chacha20poly1305 = { version = "0.10", optional = true }

# Key derivation
argon2 = "0.5"

# Secure random
rand = "0.8"

# Memory safety - zero sensitive data
zeroize = { version = "1.7", features = ["derive"] }

# Serialization
serde = { workspace = true }
serde_json = { workspace = true }

# Error handling
thiserror = { workspace = true }

# Async support
async-trait = { workspace = true }

# Base64 for key encoding
base64 = "0.22"

[dev-dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }