crypto-expert
O que ela faz
Esta skill oferece orientação sobre criptografia aplicada, como escolher métodos de cifragem, tratar chaves e configurar TLS. É para engenheiros que precisam de escolhas seguras sem escrever o próprio código criptográfico.
Quando usar
- ✓Quando você precisa escolher um método de cifragem ou de hash para um app.
- ✓Quando você está configurando certificados TLS ou conexões seguras.
- ✓Quando você precisa planejar como as chaves de cifragem são guardadas e protegidas.
Link da skill
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/crypto-expert/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Qual método de cifragem devo usar para guardar dados de clientes no nosso banco de dados, e como devo guardar as chaves?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill recomenda bibliotecas bem auditadas e cifragem autenticada, além de proteção das chaves por meio de serviços de chaves e de aleatoriedade forte.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Devo escrever a minha própria cifragem?
Não. A skill recomenda usar bibliotecas bem auditadas, e não algoritmos feitos à mão.
O que é cifragem autenticada?
É a proteção ao mesmo tempo do sigilo e da integridade, para que dados adulterados possam ser detectados. A skill a prefere a fazer as etapas de cifrar e verificar separadamente.
Onde as chaves devem ficar guardadas?
A skill sugere módulos de segurança de hardware, serviços de gestão de chaves ou armazenamento cifrado com cifragem de envelope.
Detalhes
Descrição original do autor
Cryptography expert for TLS, symmetric/asymmetric encryption, hashing, and key management
repo: RightNow-AI/openfang
Popularidade
- Estrelas no GitHub
- 18 mil
- Posição no ranking
- #10670
- Licença
- Apache-2.0
- Atualizada em
- 02/07/2026
Comentários
- …
Mais skills deste repositório
browser-automation
18 milEnsina seu agente a controlar um navegador web com Playwright, usando seletores CSS para encontrar botões, formulários e links.
clip-hand-skill
18 milAjuda seu agente a fazer cortes de vídeo: baixar um vídeo, transcrever a fala, criar arquivos de legenda e cortar trechos com o ffmpeg.
collector-hand-skill
18 milAjuda seu agente a reunir informações públicas sobre um tema ou empresa, extrair entidades principais, acompanhar mudanças e avaliar o sentimento.
infisical-sync-skill
18 milAjuda seu agente a ler e atualizar segredos em um cofre do Infisical pela API, com passos de login e tratamento claro de erros.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.