🎲 Random Verification Code (digits / letters / mixed)
Generate random numeric, alphabetic or mixed verification codes, with options to exclude easily confused characters.
📐 工作原理與說明
驗證碼按字元集隨機取值:數字型 10 個字元、字母型 26 個(或大小寫 52 個)、混合型 36 或 62 個;n 位驗證碼的組合數 = 字元集大小 ^ n(如 6 位數字為 10⁶);可排除易混字元如 0 與 O、1 與 l 以避免誤讀,各字元按等機率獨立取值。
Formula & Standard References
| Item | Formula | Source / Standard |
|---|---|---|
| Charset | Digits/upper/lower combinable | NIST SP 800-63B |
| Entropy | H = L·log2 N (len L, set N) | Shannon entropy |
| Randomness | Cryptographic PRNG recommended | NIST SP 800-90A |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準