mikailustuner/omnirule/cryptography-patterns

Claude Code and agent skill by mikailustuner/omnirule

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Cryptography: Encryption at rest, TLS, hashing, digital signatures, key management.

Install

npx vskill@latest install mikailustuner/omnirule/cryptography-patterns

SKILL.md

The same SKILL.md was published earlier as mikailustuner/omnirule/cryptography-patterns.

Cryptography Architecture Patterns

Focus: Encryption, hashing, key management, signatures

1. Encryption at Rest

Encryption at Rest:
├── Database
│ ├── Transparent encryption (AWS KMS, GCP KMS)
│ └── TDE (Transparent Data Encryption)
│ └── TLS to DB not enough (data still unencrypted on disk)
│
├── Object Storage (S3, GCS)
│ ├── Server-side encryption (default)
│ └── Customer-managed keys (CMK)
│ └── Client-side encryption (before upload)
│
├── File/Block Storage
│ ├── EBS, S3, Azure Disk Encryption
│ └── Encryption at host level
│
└── Application-level
└── Encrypt specific fields (PII, secrets)
└── Use envelope encryption

2. Encryption in Transit

TLS Implementation:
├── HTTPS everywhere
│ ├── SSL/TLS for all public endpoints
│ └── HTTP → redirect to HTTPS
│
├── Internal mTLS
│ ├── Service-to-service TLS
│ ├── Mutual authentication
│ └── SPIFFE/mTLS mesh
│
├── Certificate Management
│ ├── Short-lived certs (hours)
│ ├── Auto-rotation (Cert Manager)
│ └── ACM, Let's Encrypt
│
└── Protocol versions
└── TLS 1.2 minimum, TLS 1.3 preferred
└── Disable TLS 1.0, 1.1

3. Key Management

Key Management Patterns:
├── KMS (Key Management Service)
│ ├── AWS KMS, GCP Cloud KMS, Azure Key Vault
│ └── Keys never leave service
│ └── Key rotation supported
│
├── Envelope Encryption
│ ├── DEK (Data Encryption Key) encrypts data
│ ├── KEK (Key Encryption Key) encrypts DEK
│ └── Store encrypted DEK with data
│
├── Key Rotation
│ ├── Automatic (annual/monthly)
│ └── Manual for legacy systems
│ └── Re-encrypt with new key
│
└── HSM (Hardware Security Module)
└── Highest security
└── For root keys, signing keys

4. Hashing & Signatures

Cryptographic Hashing:
├── Password Storage
│ ├── bcrypt (cost factor 12+)
│ └── Argon2id (memory-hard)
│ └── Never plain text, never reversible
│
├── Data Integrity
│ ├── SHA-256 for checksums
│ └── HMAC for authenticated hashing
│ └── Store hash, compare
│
└── Digital Signatures
├── RSA (2048+ bits)
├── ECDSA (P-256, P-384)
└── For API auth, JWT signing

5. Application Patterns

Application Cryptography:
├── Field-level encryption
│ └── Encrypt PII (SSN, email) in DB
│ └── Use envelope encryption
│ └── Key per field or per record
│
├── Tokenization
│ └── Replace sensitive with token
│ └── Token maps to real value (separate system)
│ └── Used for PCI compliance
│
├── Secrets management
│ └── HashiCorp Vault, AWS Secrets Manager
│ └── Inject at runtime, never in code
│ └── Audit log every access
│
└── Random values
└── Use CSPRNG (cryptographically secure)
└── crypto.getRandomValues() in JS
└── secrets.token_hex() in Python

Key Patterns

  1. Encryption at rest - All sensitive data encrypted on disk
  2. TLS in transit - All communication encrypted
  3. Never roll your own - Use established libraries
  4. Key management - Use KMS, rotate regularly
  5. Default deny - Don't allow without encryption

Anti-Patterns

❌ Storing encryption keys in code — keys leaked
✅ Use KMS (AWS KMS, Cloud KMS), never in code
❌ Using deprecated algorithms (MD5, SHA1) — broken
✅ SHA-256+, bcrypt, Argon2
❌ Not encrypting backups — data at risk
✅ Encrypt backups with separate key
❌ TLS 1.0/1.1 — vulnerable to attacks
✅ Enforce TLS 1.2+, prefer 1.3
❌ Using ECB mode — patterns visible in ciphertext
✅ Use GCM, CBC with HMAC

Quick Reference

TaskAlgorithmKey Size
Passwordbcrypt, Argon2idCost 12+
HashSHA-256256 bits
HMACHMAC-SHA256256 bits
SymmetricAES-256-GCM256 bits
RSA signingRSA-PSS2048+ bits
ECDSAP-256, P-384256, 384 bits

🌍 Universal Language Support

  • Turkish Native: This skill natively supports Turkish. If the user prompt is in Turkish, all analysis, formatting, and output MUST be entirely in Turkish. You do not need explicit "write in Turkish" instructions.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mikailustuner/omnirule/cryptography-patterns/badge)](https://verified-skill.com/skills/mikailustuner/omnirule/cryptography-patterns)

Something wrong with this skill or its page? Tell us.