コンテンツへスキップ
uencoder

安全なパスワードを生成する方法

長さと文字種をカスタマイズできる、強力でランダムなパスワードを作成します。

问题

ブルートフォースに強く、複雑性の要件を満たす強力なパスワードが必要です。

前提条件

  • パスワード強度の理解
  • 文字集合に関する知識

ステップ

  1. 1. Set the password parameters

    Choose a length (at least 12 characters; 16+ recommended). Select character sets to include: lowercase, uppercase, digits, and symbols. Longer passwords are stronger than complex short ones. Avoid ambiguous characters (O, 0, I, l) if the password must be transcribed.

    入力
    length: 16, all character sets
    输出
    parameters set
  2. 2. Generate the password

    Generate the password using a cryptographically secure random number generator. For each character, randomly select from the chosen character sets. Ensure at least one character from each selected set is included. The generation must use a CSPRNG, not Math.random.

    入力
    16 chars, all sets
    输出
    K7#m@xL2!pQ9$vNw
  3. 3. Evaluate strength and use

    Check the password meets your requirements (length, character types). Estimate entropy: each character adds log2(charset_size) bits. A 16-character password with 94 possible characters has about 105 bits of entropy. Use the password immediately or store it in a password manager.

    入力
    K7#m@xL2!pQ9$vNw
    输出
    entropy: ~105 bits, very strong

期待される結果

指定した複雑さと長さの要件を満たす、強力なランダムパスワード。

よくあるエラー

Using Math.random for password generation
Math.random is not cryptographically secure. Use crypto.getRandomValues or a dedicated secure generator.
Excluding symbols to make it memorable
Length matters more than complexity. A 20-character lowercase password is stronger than an 8-character complex one. Prioritize length.

トラブルシューティング指引

  • If the password is rejected by a service, check its specific requirements (some disallow certain symbols).
  • Generate a new password if you need to exclude specific characters.

セキュリティ上の制限

  • Generated passwords stay in your browser. No password is transmitted or stored remotely.
  • Use a password manager to store generated passwords securely.

関連ツール

参考链接