What problem does it solve?
This Skill prevents common, high-impact cryptography failures by enforcing modern algorithms, correct nonce usage, safe key derivation, and authenticated encryption practices.
Core Features & Use Cases
- Modern cryptography enforcement: Avoids broken or risky primitives (e.g., weak hashes, ECB, DES/RC4) and standardizes on AEAD and strong KDFs.
- Authenticated encryption guidance: Uses AEAD patterns like AES-256-GCM and ChaCha20-Poly1305 to ensure integrity and confidentiality together.
- Key management and rotation patterns: Covers secure random generation, password-to-key derivation (Argon2id/Scrypt), key rotation structures, and envelope/key versioning strategies.
- Threat-model-driven safety: Includes anti-patterns and threat scenarios (nonce reuse, auth bypass, weak KDFs, memory disclosure) to guide correct implementation.
Quick Start
Ask the AI to generate encryption and decryption code that uses AES-256-GCM with a fresh random nonce, derives keys with Argon2id (or Scrypt), and supports key rotation via versioned key IDs.