🔑 隨機密碼產生器
Random Password Generator

範圍 4 – 256(預設 12) / Range 4 – 256 (default 12)

字元類型 (Character Types)

進階規則 (Rules)

預設 1,最多 100 / Default 1, max 100

 什麼是隨機密碼產生器?
What is the Random Password Generator?

隨機密碼產生器可根據選擇的字元類型與長度,產生高強度的隨機密碼。

The Random Password Generator creates high-entropy passwords based on your selected character types and length.

 如何使用?
How to Use?

  1. 設定密碼長度與字元類型。
    Set password length and character types.
  2. 選擇是否排除易混淆字元,以及是否確保每種字元至少出現一次。
    Optionally exclude similar characters and require at least one of each selected type.
  3. 設定批次數量以一次產生多組結果。
    Use batch count to generate multiple results at once.
  4. 點擊產生按鈕(或按 Ctrl+Enter),並可一鍵複製結果。
    Click Generate (or press Ctrl+Enter) to produce results; copy them with one click.

 適用情境
Applicable Scenarios

  • 為帳號、API 金鑰或資料庫建立高強度密碼
    Create strong passwords for accounts, API keys, or databases
  • 大量產生密碼清單供測試使用
    Generate password lists in bulk for testing

 功能特色
Key Features

  • 多種字元類型:大寫、小寫字母、數字、符號
    Supports uppercase, lowercase, numbers, and symbols
  • 排除易混淆字元:可過濾 0, O, 1, l 等視覺相似字元
    Option to exclude visually similar characters like 0, O, 1, l
  • 強制字元多元性:確保每種類型至少出現一次
    Require at least one character of each selected type for better composition
  • 批次產生與一鍵複製:一次產生多組密碼
    Batch generation and one-click copy for each result
  • 密碼學安全隨機性:優先使用 window.crypto.getRandomValues
    Uses cryptographically secure random values when available

簡潔的介面搭配可靠的隨機性,滿足從日常到進階的密碼需求。
With a clean UI and robust randomness, this tool serves everyday to advanced password needs.

 常見問題
Frequently Asked Questions

密碼長度多少才算安全?

安全性與長度和複雜度都有關。一般建議:個人帳號至少 12 字元(混合大小寫、數字、符號);企業或高敏感系統建議 16 字元以上;加密金鑰(如 API Key)建議 32 字元以上。以暴力破解計算,12 字元全字元組合的密碼需要數十億年才能破解,安全性已遠超大多數實際威脅。

Security depends on both length and complexity. Recommendations: 12+ characters (mixed case, numbers, symbols) for personal accounts; 16+ for enterprise or high-sensitivity systems; 32+ for encryption keys/API keys. A 12-character full-charset password would take billions of years to brute-force — well beyond practical threat ranges.

密碼學安全隨機(crypto.getRandomValues)和一般隨機(Math.random)有什麼差別?

Math.random() 是偽隨機數產生器(PRNG),其輸出可預測(若攻擊者知道種子值),不適合安全用途。window.crypto.getRandomValues 使用作業系統的密碼學安全隨機來源(如 /dev/urandom),輸出不可預測,適合產生密碼、token 和加密金鑰。本工具優先使用 crypto.getRandomValues,確保密碼安全性。

Math.random() is a predictable pseudo-random number generator (PRNG) — unsuitable for security. window.crypto.getRandomValues uses the OS's cryptographically secure entropy source (/dev/urandom equivalent), producing unpredictable output suitable for passwords, tokens, and encryption keys. This tool uses crypto.getRandomValues by default.

為什麼建議排除 0, O, 1, l 等字元?

某些字型中,「0」(零)和「O」(大寫字母 O)、「1」(數字一)和「l」(小寫字母 L)外觀極為相似,在手動輸入密碼時容易出錯(如登入硬體裝置、WiFi 密碼手動輸入)。勾選「排除易混淆字元」可避免這類問題,但會略微降低密碼複雜度,建議在需要手動輸入的場景下使用。

In some fonts, "0" (zero) looks like "O" (letter O), and "1" (one) looks like "l" (lowercase L). This causes manual entry errors (e.g., typing WiFi passwords or device login codes). Enabling "Exclude similar characters" prevents this at a slight reduction in complexity — recommended when manual typing is required.

這個工具產生的密碼會被記錄嗎?

不會。所有密碼的產生運算完全在您的瀏覽器端(JavaScript)執行,密碼內容不會傳送至任何伺服器,也不會被記錄或儲存。您可以放心使用,每次關閉瀏覽器視窗後,產生的密碼也隨之消失,請務必立即儲存到密碼管理器中。

No. All password generation runs entirely in your browser — nothing is sent to any server or stored anywhere. The generated passwords disappear when you close the browser, so save them to a password manager immediately after generating.

密碼管理器推薦用哪些?

知名且可靠的密碼管理器包括:Bitwarden(開源、跨平台、有免費方案)、1Password(付費、功能豐富)、Dashlane、KeePass(本地儲存、完全免費)。不建議將密碼儲存在瀏覽器的「記住密碼」功能中,也不建議在通訊軟體(如 Line、Messenger)發送密碼。使用密碼管理器可大幅降低密碼被盜或遺忘的風險。

Trusted password managers include: Bitwarden (open-source, cross-platform, free tier), 1Password (paid, feature-rich), Dashlane, and KeePass (local storage, fully free). Avoid storing passwords in browser "Remember Password" or sending them via messaging apps. A password manager dramatically reduces theft and loss risk.

批次產生有什麼用途?

批次產生最多可一次產生 100 組密碼,適用於:(1) 系統管理員為多個使用者帳號初始化密碼;(2) 開發者批量建立測試帳號;(3) 為多個不同服務各準備一組唯一密碼;(4) 需要大量隨機 token 或臨時金鑰的自動化測試情境。每組密碼均獨立隨機生成,互不相關。

Batch generation (up to 100) is useful for: (1) sysadmins initializing passwords for multiple user accounts; (2) developers creating test accounts in bulk; (3) generating unique passwords for multiple different services at once; (4) automated testing needing many random tokens. Each password is independently and randomly generated.

 為什麼選擇這個工具?
Why Choose This Tool?

它整合常見的密碼產生需求與彈性選項,介面直觀、操作快速,無需安裝即可使用,適合所有需要產生安全密碼的使用者。

It integrates common password generation needs with flexible options. With a clean interface and fast operation, it works instantly without installation, making it ideal for anyone needing secure passwords.