ToolypetMCP
advanced4 minutessecurity

Data Encryption Workflow

Encrypt sensitive data with AES, manage encryption keys securely, and verify with HMAC.

encryptionaeshmackeys

이 레시피 활용 시점

Protect sensitive data at rest — user PII, payment information, health records. AES-256-GCM provides authenticated encryption, and HMAC adds an additional integrity layer.

단계

1

Create a strong encryption key

프롬프트:Generate a 256-bit encryption key in hex format
2

Encrypt the data

프롬프트:Encrypt 'sensitive user data' using AES-256-GCM with the generated key
3

Add integrity protection

프롬프트:Generate HMAC of the encrypted data for integrity verification

자주 묻는 질문

Why use AES-GCM instead of AES-CBC?

GCM provides authenticated encryption — it detects if the ciphertext was tampered with. CBC requires a separate MAC (like HMAC) for integrity, making GCM simpler and more secure.

How should I store encryption keys?

Never store keys alongside encrypted data. Use a key management service (KMS) like AWS KMS, HashiCorp Vault, or environment variables for development.

관련 레시피