Re: Please test this encryption
From: Mark Wooding (mdw_at_nsict.org)
Date: 08/20/03
- Next message: Roger Schlafly: "Re: License questions"
- Previous message: 00:00:00Hg: "Re: OK HOW is this? was:Re: Please test this encryption"
- In reply to: Strangely Placed: "Re: Please test this encryption"
- Next in thread: Douglas A. Gwyn: "Re: Please test this encryption"
- Reply: Douglas A. Gwyn: "Re: Please test this encryption"
- Reply: LinuxGuy: "Re: Please test this encryption"
- Reply: LinuxGuy: "Re: Please test this encryption"
- Reply: Joe Peschel: "Re: Please test this encryption"
- Reply: Mark Wooding: "Re: Please test this encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 19 Aug 2003 22:54:13 GMT
Strangely Placed <binary@eton.powernet.co.uk> wrote:
> The frequency analysis of this larger (678 byte) ciphertext is
> /relatively/ flat, with 227 different byte values used, which suggests
> that it's probably not a straight monoalphabetic substitution cipher.
If it were random data, I'd expect 678 (1 - e^{678/256}) =~ 630 distinct
values to appear. Also, I'd expect about 3 values to appear eight
times, about 8 or 9 to appear seven, and about 23 to appear six times.
For comparison, here's Emacs's expected-frequency table, using the
surprisingly good Poisson approximation: if q balls are thrown uniformly
at random into n bins then the expected number of bins containing k
balls at the end of it is about n e^{-l} l^k / k!, where l = q/n.
1: [ [ 0, 47.9764270878 ]
[ 1, 127.062568615 ]
[ 2, 168.258635784 ]
[ 3, 148.540826903 ]
[ 4, 98.3502740621 ]
[ 5, 52.0949107925 ]
[ 6, 22.995019217 ]
[ 7, 8.70012445819 ]
[ 8, 2.88021698372 ]
[ 9, 0.847563851977 ]
[ 10, 0.224471988923 ]
[ 11, 0.0540454575605 ]
[ 12, 0.0119280013756 ]
[ 13, 2.43004354947e-3 ]
[ 14, 4.59701318792e-4 ] ]
> Polyalphabetic, anybody?
Maybe. It's /nothing like/ random, certainly. I'm no good at classical
cryptanalysis; someone who is would, I suspect, have little trouble
beyond motivation.
Quick summary: no bargepole is long enough.
-- [mdw], bopping to an evanescent beat.
- Next message: Roger Schlafly: "Re: License questions"
- Previous message: 00:00:00Hg: "Re: OK HOW is this? was:Re: Please test this encryption"
- In reply to: Strangely Placed: "Re: Please test this encryption"
- Next in thread: Douglas A. Gwyn: "Re: Please test this encryption"
- Reply: Douglas A. Gwyn: "Re: Please test this encryption"
- Reply: LinuxGuy: "Re: Please test this encryption"
- Reply: LinuxGuy: "Re: Please test this encryption"
- Reply: Joe Peschel: "Re: Please test this encryption"
- Reply: Mark Wooding: "Re: Please test this encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|