随机字节生成器
生成密码学安全的随机字节或整数。免费、隐私优先、100% 纯客户端运行。
Local only
最近历史
暂无历史
使用方法
- 选择模式:字节或整数。
- 字节模式:设置长度和输出格式。
- 整数模式:设置最小和最大范围。
- 复制生成的值。
使用此工具的任务
生成 cryptographic nonces correctly
nonce (数字 used 一次) 必须是 唯一 per 加密在 相同键. Learn 当到 use random vs counter nonces 和 consequences 的 reuse. 任务
生成 NanoIDs for compact unique identifiers
NanoID 是微小, URL-safe, 唯一 ID generator. Smaller 和 faster than UUID, 具有 customizable alphabet 和大小. 任务
生成 prime numbers
生成 primes for cryptographic keys and number theory. Learn sieves, primality testing, and safe prime generation. 任务
生成 a cryptographically secure random password
Create high-entropy password using cryptographically 安全 random generator, 具有 control 遍历长度和 字符 sets. 任务
生成 cryptographically secure session keys
会话关键必须是 unpredictable 和唯一 per 会话. Learn 到生成它们 using CSPRNG 和 derive sub-keys 具有 HKDF. 任务
Implement perfect forward secrecy (PFS)
PFS ensures 该 compromising 长-项关键不 reveal past 会话关键. Learn ephemeral 键 exchange 模式该 makes 此可能. 任务
Implement 速率 limiting 到 prevent brute-force attacks
Rate limiting caps 数字的 requests per 时间 window, preventing brute-force, credential stuffing, 和 DoS attacks. Learn 令牌 bucket 和 sliding window algorithms. 任务
Prevent CSRF (Cross-Site Request Forgery) attacks
CSRF tricks 已认证 users 为 submitting unwanted requests. Learn anti-CSRF tokens, SameSite cookies, 和 double-submit patterns. 任务
Use cryptographically 安全 pseudorandom 数字 generator
CSPRNGs 生成输出 indistinguishable 从真 randomness. Learn 正确 APIs 和为什么 Math.random() 是禁止在 安全 contexts. 任务
Use Diffie-Hellman 键 exchange
Diffie-Hellman allows two parties 到 establish shared secret 遍历不安全通道无 ever transmitting secret itself. foundation 的 TLS 键 exchange. 任务
Use ECDH 为键 exchange
ECDH (Elliptic Curve Diffie-Hellman) establishes shared secrets using elliptic curves. Smaller 关键, 相同安全 as DH. 任务
Use elliptic curves 为 cryptography
Elliptic curve cryptography (ECC) provides 相同安全 as RSA 具有 much smaller 关键. Learn point 操作和 键 exchange. 任务
Use Shamir's Secret Sharing 到拆分关键
Shamir's Secret Sharing splits secret 为 n shares, 任何 k 的哪个能够 reconstruct 它. Useful 为键 escrow, distributed custody, 和 eliminating 单个 points 的失败. 任务
常见问题
- 这些数字是密码学安全的吗?
- 是的。它们使用 Web Crypto API 的 getRandomValues,提供密码学安全的随机性。
- 有哪些可用格式?
- 随机字节模式支持 Hex、Base64 或原始字节。整数模式支持范围限定的整数。
相关工具
密码生成器
生成强健的、密码学安全的随机密码。免费、隐私优先、100% 纯客户端运行。基于 Web Crypto API 的 getRandomValues,支持自定义长度、字符类型(大写/小写/数字/符号)、排除相似字符(l/1/I/O/0)等选项,适合为各类账户生成高熵密码。 工具
UUID / ULID 生成器
生成 UUID v1、v4、v5 和 ULID 标识符。免费、隐私优先、100% 纯客户端运行。UUID v4 使用 Web Crypto API 提供密码学安全随机性;ULID 可按字典序排序并编码时间戳,适合用作数据库索引。支持批量生成、大写和连字符切换。 工具
HMAC 生成器
使用 SHA-1/256/512 生成 HMAC(哈希消息认证码)。免费、隐私优先、100% 纯客户端运行。 工具