crypto-misuse

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

能显著降低密码学误用导致的安全风险。

这个 Skill 做什么

阻止使用弱密码学、可预测 RNG、短密钥与非恒时比较等错误用法。

防止在实现加密、签名、哈希或密钥管理时犯常见错误,比如弱密码、可预测 RNG、过短密钥或非恒时比较。当你写加密相关代码、配置 TLS 或处理 token 比较时要参考。特点是优先使用平台自带 crypto 库并强制安全参数,避免难发现的漏洞。

▸ 展开 SKILL.md 英文原文

Block weak ciphers, predictable RNG, undersized keys, slow-hash misuse, and non-constant-time comparisons — Applies to: when generating code that hashes / encrypts / signs; when generating code that compares secrets / MACs / tokens; when wiring TLS settings, key sizes, or RNG

开发编程加密随机数密钥大小通用
2
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/dist/agent-skills/.agents/skills/crypto-misuse/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/dist/agent-skills/.agents/skills/crypto-misuse/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
<!-- Native skill bundle for agent-skills (cross-tool convention). Generated by `secure-vibe dev regenerate`. -->
<!-- Do not edit by hand; the source of truth is skills/crypto-misuse/SKILL.md. -->

# Cryptographic Misuse

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

## 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.get
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有