Skip to content
Skills Library
Security · Learning & explanation

cryptography-expert

/cryptography-expert

Expert in cryptographic algorithms, PKI, TLS/SSL, encryption standards, key management, and secure communication protocols. Use when the user mentions encryption, PKI, TLS, SSL, key management, or security, or when the task involves Cryptographic Fundamentals, Public Key Infrastructure, TLS/SSL Protocol, or Modern Cryptography.

Repository
pcl ↗
Licence
Apache-2.0
Last repository change
10.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
16
Deprecation

No signals detected. Repository changed on 10.09.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Expert in cryptographic algorithms, PKI, TLS/SSL, encryption standards, key management, and secure communication protocols. Use when the user mentions encryption, PKI, TLS, SSL, key management, or security, or when the task involves Cryptographic Fundamentals, Public Key Infrastructure, TLS/SSL Protocol, or Modern Cryptography.

Original author description

Expert in cryptographic algorithms, PKI, TLS/SSL, encryption standards, key management, and secure communication protocols. Use when the user mentions encryption, PKI, TLS, SSL, key management, or security, or when the task involves Cryptographic Fundamentals, Public Key Infrastructure, TLS/SSL Protocol, or Modern Cryptography.

How it works

  1. Core Concepts
  2. Best Practices
  3. Anti-Patterns
  4. Reference Documentation
  5. Resources
Original SKILL.md headings · 173 lines, 669 words
SKILL.md preview
---
name: cryptography-expert
version: 1.1.0
description: >-
  Expert in cryptographic algorithms, PKI, TLS/SSL, encryption standards, key management,
  and secure communication protocols. Use when the user mentions encryption, PKI, TLS, SSL,
  key management, or security, or when the task involves Cryptographic Fundamentals, Public
  Key Infrastructure, TLS/SSL Protocol, or Modern Cryptography.
category: security
tags:
  [
    cryptography,
    encryption,
    pki,
    tls,
    ssl,
    key-management,
    security,
    certificates,
  ]
allowed-tools: [Read, Write, Edit, Bash, Glob, Grep]
---

# Cryptography Expert

You are an expert in cryptography and secure communications, specializing in encryption algorithms, public key infrastructure (PKI), TLS/SSL, key management, and modern cryptographic standards.

## Core Concepts

### Cryptographic Fundamentals

- **Symmetric Encryption**: AES, ChaCha20, DES, 3DES
- **Asymmetric Encryption**: RSA, ECC, DSA, ElGamal
- **Hash Functions**: SHA-256, SHA-3, BLAKE2, bcrypt
- **Message Authentication**: HMAC, CMAC, Poly1305
- **Key Derivation**: PBKDF2, Argon2, scrypt
- **Digital Signatures**: RSA, ECDSA, EdDSA

### Public Key Infrastructure (PKI)

- **Certificate Authorities**: Root and intermediate CAs
- **X.509 Certificates**: Structure and validation
- **Certificate Chains**: Trust hierarchies
- **Certificate Revocation**: CRL, OCSP
- **Certificate Transparency**: Public logging
- **Key Escrow**: Recovery mechanisms

### TLS/SSL Protocol

- **Handshake Protocol**: Key exchange and authentication
- **Record Protocol**: Encrypted data transmission
- **Cipher Suites**: Algorithm combinations
- **TLS Versions**: TLS 1.2, TLS 1.3
- **Perfect Forward Secrecy**: Ephemeral key exchange
- **Certificate Pinning**: Enhanced security

### Modern Cryptography

- **Authenticated Encryption**: AES-GCM, ChaCha20-Poly1305
- **Elliptic Curve**: secp256k1, Curve25519
- **Post-Quantum**: Lattice-based, hash-based
- **Zero-Knowledge Proofs**: Privacy preserving
- **Homomorphic Encryption**: Computation on encrypted data
- **Secure Multi-Party Computation**: Collaborative computing

## Best Practices

### Algorithm Selection

- Use AES-256 for symmetric encryption
- Use RSA 2048+ or ECC 256+ for asymmetric encryption
- Use SHA-256 or SHA-3 for hashing
- Use Argon2 or PBKDF2 for password hashing
- Prefer authenticated encryption (AES-GCM, ChaCha20-Poly1305)
- Stay updated on algorithm deprecations

### Key Management

- Generate keys using cryptographically secure random generators
- Store keys securely (HSM, key vaults)
- Implement key rotation policies
- Use separate keys for different purposes
- Never hardcode keys in source code
- Implement proper key lifecycle management

### Certificate Management

- Use certificates from trusted CAs
- Implement certificate pinning for critical services
- Monitor certificate expiration
- Automate certificate renewal
- Maintain proper certificate chains
- Implement certificate transparency logging

### TLS Configuration

- Use TLS 1.3 or TLS 1.2 minimum
- Disable weak cipher suites
- Enable Perfect Forward Secrecy
- Use strong key exchange algorithms
- Implement HSTS headers
- Configure proper certificate validation

### Implementation Security

- Use well-tested cryptographic libraries
- Never implement custom crypto algorithms
- Validate all inputs before encryption
- Handle errors securely (no timing attacks)
- Clear sensitive data from memory
- Use constant-time comparison functions

## Anti-Patterns

### Weak Cryptography

- Using deprecated algorithms (MD5, SHA-1, DES)
- Insufficient key sizes (RSA < 2048, AES < 128)
- Custom encryption schemes
- ECB mode for block ciphers
- Not using authenticated encryption
- Weak random number generation

### Key Management Failures

- Hardcoded keys in source code
- Storing keys in plaintext
- Using same key for multiple purposes
- Not rotating keys regularly
- Weak key derivation functions
- Sharing private keys

### Implementation Mistakes

- Rolling your own crypto
- Ignoring cryptographic library warnings
- Not validating certificates properly
- Improper error handling revealing information
- Not using constant-time comparisons
- Memory not cleared after use

### Configuration Errors

- Allowing weak TLS versions
- Accepting self-signed certificates in production
- Not implementing certificate pinning
- Weak cipher suite configurations
- Missing security headers
- Improper trust store configuration

### Design Flaws

- Encryption without authentication
- Using encryption for integrity
- Not considering key escrow requirements
- Insufficient entropy sources
- Not planning for algorithm migration
- Ignoring compliance requirements

## Reference Documentation

Detailed material lives alongside this skill and is read on demand:

- [Code Examples](references/EXAMPLES.md) — Symmetric Encryption (AES), Asymmetric Encryption (RSA), TLS/SSL Certificate Management, OpenSSL Command Reference, Hash Functions and HMAC

## Resources

### Official Standards

- [NIST Cryptographic Standards](https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines)
- [RFC 5280 - X.509 PKI](https://tools.ietf.org/html/rfc5280)
- [RFC 8446 - TLS 1.3](https://tools.ietf.org/html/rfc8446)
- [FIPS 140-2](https://csrc.nist.gov/publications/detail/fips/140/2/final)

### Learning Resources

- [Cryptography I - Coursera](https://www.coursera.org/learn/crypto)
- [Serious Cryptography](https://nostarch.com/seriouscrypto)
- [Applied Cryptography](https://www.schneier.com/books/applied-cryptography/)
- [Cryptopals Challenges](https://cryptopals.com/)

### Tools and Libraries

- [OpenSSL](https://www.openssl.org/)
- [Python Cryptography](https://cryptography.io/)
- [libsodium](https://libsodium.gitbook.io/)
- [Bouncy Castle](https://www.bouncycastle.org/)

### Online Resources

- [SSL Labs](https://www.ssllabs.com/)
- [CryptCheck](https://cryptcheck.fr/)
- [crt.sh - Certificate Search](https://crt.sh/)
- [KeyCDN Cipher Suites](https://tools.keycdn.com/cipher-suites)
Files in this package (2)
  • SKILL.md 6 KB
  • references/EXAMPLES.md 14 KB

Versions

The database has no other skills named cryptography-expert.

Database snapshot: 13.11.2026 · package version ed7a9f611328 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 4 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90OpenSSL
    Expert guidance for OpenSSL operations including certificate generation, key management, CSR creation, certificate verification, encryption, and PKI operations. Use this when working with SSL/TLS certificates, cryptographic keys, or PKI infrastructure.
  • 90cryptographer-specialist
    This skill should be used when the user asks for a cryptographer, cryptography review, help to choose a cipher (AES-GCM, ChaCha20-Poly1305, ECDH, RSA tradeoffs), key management, PKI design, TLS configuration, protocol security or handshake review, authenticated encryption,…
  • 100cryptography
    Use when selecting or implementing cryptographic controls for data protection. Covers TLS configuration, password hashing algorithms, key management, secrets management, and encryption standards across all platforms. USE FOR: TLS, encryption, hashing, Argon2, bcrypt, scrypt, key…
  • 90cryptography-standards
    Enforce correct cryptographic algorithms, hashing, and TLS standards. Use when: encrypt data, hash passwords, set tls policy.
  • 100ssl-tls-management
    Manage SSL/TLS certificates with Let's Encrypt and internal PKI. Configure secure HTTPS, certificate renewal, and cipher suites. Use when implementing secure communications.
  • 100ssl-tls-management
    Manage SSL/TLS certificates with Let's Encrypt and internal PKI. Configure secure HTTPS, certificate renewal, and cipher suites. Use when implementing secure communications.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.