Хи-квадрат

Для каждого из 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)