-crypto.getRandomValues によりローカルで生成されます。外部に送信されることはありません。
機能の説明
セキュアトークン生成ツールは、API キー・セッションシークレット・共有リンク・ワンタイムパスワードのための、暗号学的にランダムなトークンを生成します。ランダム性の量をバイトで、出力形式(hex、base32、
base64base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt.
、base62、英数字)で設定すると、結果の文字列と、ビット数で表した真の強度が表示されます。生成にはブラウザーの CSPRNG(crypto.getRandomValues)を使い、デバイスの外に出ることはないため、本物の機密にも安全です。
使い方
EntropyEntropyThe unpredictability of a secret, measured in bits. Each added bit doubles the guesses an attacker needs; strength comes from length and randomness, not from obscurity.
(bytes) を設定します - ほとんどのトークンには 16 バイト(128 ビット)が標準です。高価値のキーには 32 バイト(256 ビット)。- Format を選びます - チェックサム/ID には hex、コンパクトな Web トークンには base64url、人が入力する可能性があるなら base32。
- 選択肢が提供されている場合は Variant を選びます(hex の大文字/小文字、
base64base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt.
か URL セーフか、base32 のアルファベット)。 - トークンを Copy するか、Regenerate で新しいものを生成します。URL に設定が保持されるため、正確な構成を共有できます。
例
128 ビット hex トークン(16 バイト)
Format: Hex → 32 characters, e.g. 9f4a2c7b8e1d0f3a5b6c7d8e9f0a1b2c - strength: strong · ~128 bits.
256 ビット base64url トークン(32 バイト)
Format: Base64 → URL-safe, 43 characters, e.g. v8aM2dQfTn_YpKxR4sLz9BwEhJm6UcAo3NqVbGi - strength: very strong · ~258 bits.
Crockford base32(20 バイト)
Format: Base32 → Crockford (no I/L/O/U, unambiguous to read aloud), 32 characters - strength: strong · ~160 bits.
補足事項
- モジュロバイアスなし: 各記号は棄却サンプリングで選ばれるため、2 の冪乗でないアルファベット(base62、英数字)でも一様にランダムなままです。
- プライベート: ランダム性はすべてローカルで生成され、送信されることはありません - 本番のシークレットにも安全です。
- 関連ツール: Password Generator、
UUIDUUIDA 128-bit identifier generated to be practically unique without coordination, most commonly in version-4 (fully random) form.
Generator、HashHashA one-way function that maps data of any size to a fixed-length digest. Same input, same digest; any change, different digest; not reversible.
Generator。