Install
$ agentstack add skill-arbazkhan971-godmode-crypto ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Crypto — Cryptography Implementation
Activate When
- User invokes
/godmode:crypto - User says "encryption", "hashing", "password storage", "bcrypt", "argon2"
- User says "key management", "digital signature", "JWT signing"
- User says "TLS setup", "HTTPS configuration", "certificate"
- When code handles sensitive data (PII, financial, health records)
Workflow
Step 1: Requirements Assessment
Classify data: at rest (passwords, PII, financial, API keys), in transit (TLS, mTLS, DB connections), integrity (signatures, HMAC, checksums), compliance (PCI-DSS, HIPAA, GDPR, FIPS).
Step 2: Algorithm Selection
Password hashing: Argon2id (m=65536, t=3, p=4) primary. bcrypt (cost 12+) fallback. NEVER MD5, SHA1, SHA256, PBKDF2 ( deploy -> grace -> retire old. Track version with data.
Step 8: Report
CRYPTO RESULT:
Use case:
Algorithm:
Key management:
Key rotation:
Weak crypto found:
Verdict:
Key Behaviors
- Use established libraries. Never implement your own crypto.
- Algorithm selection is not negotiable. AES-256-GCM, Argon2id, RS256/ES256.
- Never reuse nonces/IVs. Single reuse with GCM breaks authentication.
- Key management is the hard part. Use KMS or Vault.
- Envelope encryption for data. Never encrypt directly with master key.
- Forward secrecy is mandatory. ECDHE for TLS.
- Hash passwords, never encrypt. Hashing is one-way.
Flags & Options
| Flag | Description | |--|--| | (none) | Full cryptographic assessment | | --passwords | Password hashing setup | | --encrypt | Encryption at rest | | --tls | TLS hardening | | --jwt | JWT signing/verification | | --keys | Key management and rotation | | --audit | Audit existing crypto |
HARD RULES
Never ask to continue. Loop autonomously until zero weak algorithms remain and all secrets are in env vars or secret managers.
- NEVER implement your own cryptographic primitives.
- NEVER reuse IVs/nonces with the same key.
- NEVER store keys alongside encrypted data.
- NEVER use MD5, SHA-1, DES, 3DES, RC4, or ECB for security.
- NEVER encrypt passwords — hash with Argon2id or bcrypt.
- NEVER use Math.random() for keys, tokens, or IVs.
- ALWAYS use authenticated encryption (GCM, ChaCha20-Poly1305).
- ALWAYS track key version with encrypted data.
# Audit crypto usage in codebase
grep -rn "md5\|sha1\|DES\|ECB\|Math.random" src/ --include="*.ts" --include="*.py"
openssl s_client -connect localhost:443 -tls1_2 &1 | grep Protocol
npx audit-ci --moderate
IF weak algorithm found (MD5, SHA1, DES): replace immediately. WHEN TLS version = 12.
Auto-Detection
1. grep for crypto, encrypt, decrypt, hash, bcrypt, argon2, jwt
2. Check nginx.conf for ssl_protocols, ssl_ciphers
3. grep for md5, sha1, des, ecb, Math.random — flag immediately
Platform Fallback (Gemini CLI, OpenCode, Codex)
Run crypto tasks inline. All conventions apply identically.
Output Format
Print: Crypto: {N} issues found, {M} fixed. Weak algorithms: {removed|none}. Key management: {env_vars|hardcoded}. Status: {DONE|PARTIAL}.
Error Recovery
| Failure | Action | |--|--| | Deprecated algorithm in production | Replace immediately (MD5/SHA1 -> SHA-256+, DES/3DES -> AES-256-GCM). Migrate existing hashes on next user login. | | Key rotation breaks decryption | Store key version with ciphertext. Support decryption with old key, encryption with new key during rotation window. | | CSPRNG not available | Use crypto.randomBytes (Node), secrets (Python), crypto/rand (Go). Never fall back to Math.random or random. | | TLS certificate expired | Automate renewal with Let's Encrypt/certbot. Set monitoring alert 30 days before expiry. |
Quality Targets
- Minimum key length: >=256-bit for symmetric, >=2048-bit for RSA
- Target: 0 deprecated algorithms (MD5, SHA1, DES, RC4)
- Key rotation interval: <90 days
Success Criteria
- No weak algorithms (MD5, SHA1, DES, ECB mode,
Math.randomfor security). - All secrets from environment variables or secret managers (not hardcoded).
- Passwords hashed with bcrypt/argon2/scrypt (not SHA-256).
- TLS 1.2+ enforced for all connections.
TSV Logging
Append to .godmode/crypto-results.tsv:
timestamp finding_type severity location algorithm_before algorithm_after status
One row per finding. Status: fixed, open, accepted_risk.
Keep/Discard Discipline
After EACH crypto change:
KEEP if: no weak algorithms AND all tests pass AND existing encrypted data still decryptable
DISCARD if: introduces weak algorithm OR breaks existing decryption OR hardcodes secrets
On discard: revert immediately. Crypto regressions are security incidents.
Stop Conditions
STOP when ALL of:
- No weak algorithms in codebase
- All secrets in env vars or secret managers
- Password hashing uses bcrypt/argon2/scrypt
- TLS 1.2+ enforced
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: arbazkhan971
- Source: arbazkhan971/godmode
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.