crypto-misuse

仓库创建 2026年7月1日最近提交 23 天前SkillHot 收录 22 天前
▸ 精选理由

直接针对高危加密错误,适合代码审查与生成器校验

这个 Skill 做什么

阻止弱加密用法、可预测 RNG 与不安全比较等加密滥用。

帮你避开常见的加密踩坑:阻止使用弱算法、可预测的 RNG、过短密钥、慢哈希误用和非恒时比较等不安全做法。开发与加密、认证或密钥处理相关功能时用它来把关,强制使用平台自带的 crypto 库(如 Python 的 cryptography/secrets、JS 的 Web Crypto 等)、安全随机数和恒时比较。它把安全实践当硬规则,减少脆弱实现。

▸ 展开 SKILL.md 英文原文

Block weak ciphers, predictable RNG, undersized keys, slow-hash misuse, and non-constant-time comparisons

开发编程加密RNG最佳实践通用
2
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/skills/crypto-misuse/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/skills/crypto-misuse/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Cryptographic Misuse

## Rules (for AI agents)

### ALWAYS
- Use the language / platform's cryptographic library. Python: `cryptography`,
  `secrets`. JavaScript: Web Crypto, `crypto.webcrypto`, Node `crypto`. Go:
  `crypto/*`, `golang.org/x/crypto`. Java: JCE/Bouncy Castle. .NET:
  `System.Security.Cryptography`.
- Use a cryptographically secure RNG: Python `secrets.token_bytes` /
  `secrets.token_urlsafe`, JS `crypto.getRandomValues` / `crypto.randomBytes`,
  Go `crypto/rand.Read`, Java `SecureRandom`.
- Hash passwords with a slow KDF tuned for ~100 ms on production hardware:
  **argon2id** (preferred, RFC 9106 parameters: m=64 MiB, t=3, p=1), **scrypt**
  (N=2^17, r=8, p=1), or **bcrypt
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有