Zum Inhalt springen
Skillpedia
Sicherheit18k · #10670

crypto-expert

Was er macht

Dieser Skill gibt Hinweise zur angewandten Kryptografie, etwa zur Wahl von Verschlüsselungsverfahren, zum Umgang mit Schlüsseln und zur Einrichtung von TLS. Er ist für Ingenieure gedacht, die sichere Entscheidungen brauchen, ohne eigenen Kryptocode zu schreiben.

Wann du ihn nutzt

  • ✓Wenn du ein Verschlüsselungsverfahren oder einen Hash-Ansatz für eine App wählen musst.
  • ✓Wenn du TLS-Zertifikate oder sichere Verbindungen einrichtest.
  • ✓Wenn du planen musst, wie Verschlüsselungsschlüssel gespeichert und geschützt werden.

Link zum Skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/crypto-expert/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/crypto-expert/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Welches Verschlüsselungsverfahren soll ich nutzen, um Kundendaten in unserer Datenbank zu speichern, und wie sollte ich die Schlüssel ablegen?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill empfiehlt gut geprüfte Bibliotheken und authentifizierte Verschlüsselung. Dazu kommen Schlüsselschutz über Schlüsseldienste und starke Zufallszahlen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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() or rand() 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.3 and limited cipher suites: TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 for 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
Häufige Fragen

Soll ich meine eigene Verschlüsselung schreiben?

Nein. Der Skill rät, gut geprüfte Bibliotheken zu nutzen und keine selbst gebauten Algorithmen.

Was ist authentifizierte Verschlüsselung?

Sie schützt Vertraulichkeit und Integrität zugleich, sodass manipulierte Daten erkannt werden. Der Skill bevorzugt sie gegenüber getrennten Schritten für Verschlüsselung und Prüfung.

Wo sollen Schlüssel gespeichert werden?

Der Skill nennt Hardware-Sicherheitsmodule, Schlüsselverwaltungsdienste oder verschlüsselten Speicher mit Envelope-Verschlüsselung.

Details

Originalbeschreibung des Autors

Cryptography expert for TLS, symmetric/asymmetric encryption, hashing, and key management

repo: RightNow-AI/openfang

Beliebtheit

GitHub-Sterne
18k
Platz im Ranking
#10670
Lizenz
Apache-2.0
Aktualisiert
2.7.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills