-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Normor (Or, normal order) is a statistical test for measuring how closely a ciphertexts distribution matches an expected frequency.
Step 1: rank your ciphertext by frequency.
Step 2: extract frequency order (E.g. itacgpexbduhrqkfnsvlozmwj)
Step 3: compare positions of order to english distribution by way of running count (etaoinsrhlducmgfypwbvkxjzq)
e.g. i = rank 1 ciphertext rank 5 english distribution, diff = 4
t = rank 2 ciphertext rank 2 english, diff = 0
4+0+...+...+...= Normor score
Vibe coded html/js implementation for illustrations sake (confirmed working)
pussyfeet.txt
read more: https://www.ackgame.com/Normor%20Revisited.pdf
we should also probably add a setting that will toggle to base64, hex, and whatnot using standard hex, base64, and whatnot frequencies of encoded english. hell, make it so that the distribution you are comparing to can be a user defined input if you like. world is your oyster.