What problem does it solve?
Encrypting data at rest correctly is error-prone: developers often pick insecure modes like ECB, reuse nonces, skip authentication tags, or use raw passwords as keys. This Skill provides a vetted workflow for implementing AES-256-GCM encryption that resists tampering and avoids the most common cryptographic misconfigurations.
Core Features & Use Cases
- Authenticated File Encryption: Encrypt and decrypt files with AES-256-GCM, storing salt, nonce, ciphertext, and tag in a defined binary format.
- Secure Key Derivation: Derive keys from passwords using PBKDF2 (600k+ iterations) or Argon2id with per-file random salts.
- Misconfiguration Detection: Verify implementations against known failures such as ECB mode, nonce reuse, missing MACs, and ignored authentication tags.
- Use Case: A developer needs to encrypt sensitive configuration backups before writing them to disk. Use this Skill to derive a key with Argon2id, encrypt each file with a fresh 96-bit nonce, and confirm that tampered ciphertext is rejected on decryption.
Quick Start
Use the AES encryption skill to encrypt the file secrets.json with AES-256-GCM using a key derived from a password via Argon2id, then verify decryption rejects a tampered ciphertext.