crypto-expert

Audit TLS and data encryption designs for AEAD ciphers and key management.

10|7|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/librefang/librefang-registry --skill crypto-expert-librefang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crypto-expert
Source: https://github.com/librefang/librefang-registry/tree/main/skills/crypto-expert
Command: npx skills add https://github.com/librefang/librefang-registry --skill crypto-expert-librefang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It provides expert guidance on applying cryptography securely, avoiding hand-rolled implementations, and designing systems with cryptographic agility to adapt to evolving threats and standards.

Core Features & Use Cases

  • Use well-audited libraries (OpenSSL, libsodium, ring, RustCrypto) instead of homemade crypto.
  • Prefer AEAD ciphers and TLS 1.3 configurations to ensure confidentiality and integrity.
  • Design for cryptographic agility by embedding algorithm identifiers with ciphertext to enable seamless migrations.
  • Implement envelope encryption with KMS/HSM-backed keys and secure key rotation to limit blast radius.
  • Derive subkeys with HKDF and enforce constant-time comparisons for MACs and signatures.

Quick Start

Audit your TLS and data encryption design to ensure AEAD ciphers, proper key management, and cryptographic agility.

Frequently Asked Questions about crypto-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design cryptographic agility to migrate algorithms without architectural changes?

Cryptographic agility is achieved by embedding algorithm identifiers within the ciphertext metadata. This allows you to seamlessly swap encryption algorithms during key rotation without requiring disruptive architectural changes to the system.

What is the best way to configure TLS 1.3 for confidentiality and integrity?

TLS 1.3 configuration should prefer AEAD ciphers to ensure data confidentiality and integrity. You should audit your server settings to eliminate deprecated protocols and rely exclusively on authenticated encryption modes.

How does envelope encryption work with KMS or HSM backed keys?

Envelope encryption generates a data encryption key for your payload while wrapping it using a master key stored securely in a KMS or HSM. This limits the blast radius and enables secure key rotation.

Can I use libsodium or OpenSSL instead of hand-rolled cryptographic implementations?

Yes, you should always prefer well-audited high-level libraries like OpenSSL, libsodium, ring, or RustCrypto. These libraries replace the need for homemade crypto implementations which are prone to critical security vulnerabilities.

Why do I need HKDF for subkey derivation and constant-time comparisons for MACs?

HKDF derives secure subkeys from a master key, while constant-time comparisons prevent timing side-channel attacks on MACs and signatures. Both are required to enforce proper cryptographic boundaries and avoid data leakage.

Does this approach support long-term key rotation for encrypted data at rest?

Yes, long-term key rotation for data at rest is supported through envelope encryption and cryptographic agility. You can migrate algorithms and rotate keys by re-wrapping data encryption keys without touching underlying ciphertext.