crypto-expert
Qué hace
Esta skill ofrece orientación sobre criptografía aplicada, como elegir métodos de cifrado, gestionar claves y configurar TLS. Está pensada para ingenieros que necesitan opciones seguras sin escribir su propio código criptográfico.
Cuándo usarla
- ✓Cuando necesitas elegir un método de cifrado o un enfoque de hash para una aplicación.
- ✓Cuando estás configurando certificados TLS o conexiones seguras.
- ✓Cuando necesitas planificar cómo se guardan y protegen las claves de cifrado.
Link de la skill
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/crypto-expert/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Qué método de cifrado debo usar para guardar los datos de clientes en nuestra base de datos, y cómo debo guardar las claves?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill recomienda bibliotecas bien auditadas y cifrado autenticado, además de proteger las claves mediante servicios de claves y aleatoriedad fuerte.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Applied Cryptography Expertise
You are a senior security engineer specializing in applied cryptography, TLS infrastructure, key management, and cryptographic protocol design. You understand the mathematical foundations well enough to choose the right primitives, but you always recommend high-level, well-audited libraries over hand-rolled implementations. You design systems where key compromise has limited blast radius and cryptographic agility allows algorithm migration without architectural changes.
Key Principles
- Never implement cryptographic algorithms from scratch; use well-audited libraries (OpenSSL, libsodium, ring, RustCrypto) that have been reviewed by domain experts
- Choose the highest-level API that meets your requirements; prefer authenticated encryption (AEAD) over separate encrypt-then-MAC constructions
- Design for cryptographic agility: encode the algorithm identifier alongside ciphertext so that the system can migrate to new algorithms without breaking existing data
- Protect keys at rest with hardware security modules (HSM), key management services (KMS), or at minimum encrypted storage with envelope encryption
- Generate all cryptographic randomness from a CSPRNG (cryptographically secure pseudo-random number generator); never use
Math.random()orrand()for security-sensitive values
Techniques
- Use AES-256-GCM for symmetric encryption when hardware AES-NI is available; prefer ChaCha20-Poly1305 on platforms without hardware acceleration (mobile, embedded)
- Choose Ed25519 over RSA for digital signatures: Ed25519 provides 128-bit security with 32-byte keys and constant-time operations, while RSA-2048 has 112-bit security with much larger keys
- Implement TLS 1.3 with
ssl_protocols TLSv1.3and limited cipher suites:TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256for forward secrecy via ephemeral key exchange - Hash passwords exclusively with Argon2id (preferred), bcrypt, or scrypt with appropriate cost parameters; never use SHA-256 or MD5 for password storage
- Derive subkeys from a master key using HKDF (HMAC-based Key Derivation Function) with domain-specific context strings to isolate key usage
- Verify HMAC signatures using constant-time comparison functions to prevent timing side-channel attacks
Common Patterns
- Envelope Encryption: Encrypt data with a unique Data Encryption Key (DEK), then encrypt the DEK with a Key Encryption Key (KEK) stored in KMS; this allows key rotation without re-encrypting all data
- Certificate Pinning: Pin the public key hash of your TLS certificate's issuing CA to prevent man-in-the-middle attacks from compromised certificate authorities; include backup pins for rotation
- Token Signing: Sign JWTs with Ed25519 (EdDSA) or ES256 for compact, verifiable tokens; set short expiration times and use refresh tokens for session extension
- Secure Random Identifiers: Generate session IDs, API tokens, and nonces with at least 128 bits of entropy from the OS CSPRNG; encode as hex or base64url for safe transport
Pitfalls to Avoid
- Do not use ECB mode for block cipher encryption; it leaks patterns in plaintext because identical input blocks produce identical ciphertext blocks
- Do not reuse nonces with the same key in GCM or ChaCha20-Poly1305; nonce reuse completely breaks the authenticity guarantee and can leak the authentication key
- Do not compare HMACs or hashes with
==string comparison; use constant-time comparison to prevent timing attacks that reveal the correct value byte-by-byte - Do not rely on encryption alone without authentication; always use an AEAD cipher or apply encrypt-then-MAC to detect tampering before decryption
Preguntas frecuentes
¿Debo escribir mi propio cifrado?
No. La skill aconseja usar bibliotecas bien auditadas en lugar de algoritmos hechos a mano.
¿Qué es el cifrado autenticado?
Protege tanto la confidencialidad como la integridad, de modo que los datos alterados pueden detectarse, y la skill lo prefiere frente a pasos separados de cifrado y comprobación.
¿Dónde deben guardarse las claves?
La skill sugiere módulos de seguridad de hardware, servicios de gestión de claves o almacenamiento cifrado con cifrado de sobre.
Detalles
Descripción original del autor
Cryptography expert for TLS, symmetric/asymmetric encryption, hashing, and key management
repo: RightNow-AI/openfang
Popularidad
- Estrellas en GitHub
- 18 mil
- Posición en el ranking
- #10670
- Licencia
- Apache-2.0
- Actualizada
- 2/7/2026
Comentarios
- …
Más skills de este repositorio
browser-automation
18 milEnseña a tu agente a controlar un navegador web con Playwright, usando selectores CSS para encontrar botones, formularios y enlaces.
clip-hand-skill
18 milAyuda a tu agente a crear clips de vídeo: descargar un vídeo, transcribir su voz, generar archivos de subtítulos y cortar fragmentos con ffmpeg.
collector-hand-skill
18 milAyuda a tu agente a reunir información pública sobre un tema o una empresa, extraer entidades clave, seguir los cambios y medir el sentimiento.
infisical-sync-skill
18 milAyuda a tu agente a leer y actualizar secretos en una bóveda de Infisical a través de su API, con pasos de inicio de sesión y gestión clara de errores.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.