hack23/cia/crypto-best-practices
Claude Code and agent skill by hack23/cia
- community
Checking that the SKILL.md file is still in the repository.
Implement strong encryption, secure hashing, and proper key management following NIST and OWASP cryptography guidelines
Install
npx vskill@latest install hack23/cia/crypto-best-practicesSKILL.md
The same SKILL.md was published earlier as hack23/cia/crypto-best-practices.
Cryptography Best Practices Skill
Purpose
This skill provides guidance on implementing cryptography correctly in the CIA platform, covering encryption, hashing, digital signatures, and key management. It ensures compliance with NIST, OWASP, and Hack23 ISMS cryptography policies.
When to Use This Skill
Apply this skill when:
- ✅ Encrypting sensitive data at rest (database, files)
- ✅ Implementing user authentication (password hashing)
- ✅ Securing data in transit (TLS configuration)
- ✅ Generating secure tokens or session IDs
- ✅ Implementing digital signatures
- ✅ Creating API authentication mechanisms
- ✅ Managing encryption keys
Golden Rules of Cryptography
Rule #1: Never Roll Your Own Crypto
❌ NEVER IMPLEMENT YOUR OWN:
- Encryption algorithms
- Hashing functions
- Random number generators
- Cryptographic protocols
✅ ALWAYS USE ESTABLISHED LIBRARIES:
- Java Cryptography Architecture (JCA)
- Bouncy Castle (when JCA insufficient)
- Spring Security Crypto
- Apache Commons Crypto
Rule #2: Use Strong, Modern Algorithms
APPROVED ALGORITHMS (2024):
Encryption:
- ✅ AES-256-GCM (preferred for symmetric encryption)
- ✅ ChaCha20-Poly1305 (alternative to AES)
- ✅ RSA-4096 (for asymmetric encryption)
- ❌ DES, 3DES, RC4 (deprecated, insecure)
- ❌ AES-ECB mode (vulnerable to patterns)
Hashing:
- ✅ SHA-256, SHA-384, SHA-512 (for general hashing)
- ✅ bcrypt (cost factor 12+) for passwords
- ✅ Argon2id (preferred for new implementations)
- ❌ MD5, SHA-1 (cryptographically broken)
Key Derivation:
- ✅ PBKDF2 with SHA-256 (100,000+ iterations)
- ✅ Argon2id (memory-hard, resistant to GPU attacks)
- ❌ Simple hashing without salt
Password Hashing
Implementation with BCrypt
Password Strength Requirements
Data Encryption at Rest
AES-256-GCM Encryption
Custom AES-GCM Implementation (Advanced)
TLS/SSL Configuration
Container/Server TLS Configuration
For production deployments, configure TLS at the container or reverse proxy level:
Tomcat server.xml (if using embedded Tomcat):
Or use Spring Security for HTTPS redirect and headers:
Nginx/Apache Reverse Proxy TLS
For most production deployments, configure TLS at the reverse proxy:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/crypto-best-practices/SKILL.md
Popularity
- Repository stars
- 235
- Repository forks
- 56
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. 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
[](https://verified-skill.com/skills/hack23/cia/crypto-best-practices)