カイ二乗

256種類のバイトそれぞれの出現回数を、入力長 / 256という期待値と比較し、(観測値 − 期待値)² / 期待値を合計します。

入力: テキスト (UTF-8) / ファイル結果: 数値

テキスト入力

使用例

A full-byte alphabet biased toward A

Start with one of every byte, then add sixteen copies of A. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

入力

be7e19885e85d3059cce40e0.bin

272 bytes

ダウンロード

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward B

Start with one of every byte, then add sixteen copies of B. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

入力

88c9782be50185745e8ede42.bin

272 bytes

ダウンロード

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward C

Start with one of every byte, then add sixteen copies of C. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

入力

43d4200006f6120fb55c3861.bin

272 bytes

ダウンロード

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward D

Start with one of every byte, then add sixteen copies of D. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

入力

16ce31084eac20998b4c1c40.bin

272 bytes

ダウンロード

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward E

Start with one of every byte, then add sixteen copies of E. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

入力

deddf894bcec45534daa7221.bin

272 bytes

ダウンロード

Expected answer

Tolerance ±2.4e-10
240

AAAAの結果は1020です。分割表の検定やp値計算ではなく、暗号化の証明にもなりません。

関連ツール

その他

操作の参考資料

元の技術文書を見る (English)