← 密碼和安全

密碼/安全工具

隨機字串產生器

使用預設或自訂字元集產生隨機字串。

在您的瀏覽器中執行

長度:1–1,024 個字元。批次:1-100 個字串,總共最多 10,000 個字元。自訂集需要 2-256 個不同的字元,不含空格或控製字元。重複項將被忽略。

每個字元都是透過加密隨機來源和拒絕取樣來選擇的,以避免偏差。強度取決於您選擇的長度和字符集。僅當您按下按鈕時才會生成結果。

English guide · Ghid în română

Practical guide

Create random strings with a preset or custom alphabet for test data and application identifiers. Choose an alphabet that the receiving system can store without alteration.

Steps that matter

  1. Set the length, quantity and allowed character set.
  2. Generate and check whether case sensitivity or punctuation affects the destination.
  3. For production tokens, also implement expiry, permissions and secure storage in your application.

Worked example

With 16 possible hexadecimal characters and 8 independent positions, there are 16⁸ = 4,294,967,296 possible strings. This counts possibilities; it does not guarantee uniqueness for a generated batch.

Check before using the result

  • Short strings and small alphabets have fewer combinations. Enforce uniqueness where your application requires it.
  • A generated string alone is not a complete session or API-key design. Do not treat an example value from a guide as a secret.