By now, everyone and his/her crypto-dog must surely know that the second Beale Cipher (“B2”) was enciphered using a lookup table created from the first letters of the words of the Declaration of Independence: that is, a number N in the B2 ciphertext corresponds to the first letter of the Nth word in the DoI.

Even working out that this was the case was far from trivial, because the version of the DoI used was non-standard, and there were also annoying numerical shifts (which strongly suggest that the encipherer’s word numbering messed up along the way). There were also a few places where the numbers in the B2 ciphertext appear to have been miscopied or misprinted.

Yet I don’t share the view put forward by some researchers that this would have made it nigh-on-impossible for anyone to figure out that the DoI had been used, simply because most of the number instances are low numbers, i.e. they are concentrated near the front end of the DoI where there are fewer differences with normal DoI’s, and before the numbering slips started to creep in. This means that even if you used nearly the right DoI, a very large part of the ciphertext would become readable: and from there a persistent investigator should be able to reconstruct what happened with the (not-so-straightforward) high-numbered indices to eventually fill in the rest of the gaps. Which is basically where Beale research had reached by the time Ward’s pamphlet was printed.

So far, so “National Treasure”. But this isn’t quite the whole story, because…

B1 Used The Same Table!

Even if we have so far failed to work out precisely how B1 was enciphered, we do also know something rather surprising, courtesy of Carl Hammer and Jim Gillogly: that the process used to construct B1 used almost exactly the same DoI used to encipher B2. Jim Gillogly, in his famous article “The Beale Cipher: A Dissenting Opinion” [April 1980, Cryptologia, Volume 4, Number 2, pp.116-119, a copy of which can be found in the Wayback Machine here] concluded that the ‘plaintext’ patterns that emerged from this were artificial nonsense, and so B1 (and by implication B3) were empty hoax texts, i.e. designed to infuriate rather than to communicate.

From the same evidence, Carl Hammer concluded (quite differently) that B1 and B2 were encrypted in the same way using the same tables, though he didn’t have a good explanation for the mysterious patterns. For what it’s worth, my own conclusion is that B1 and B2 were encrypted slightly differently but using the same tables, which is kind of a halfway house between Gillogly’s coglie and Hammer’s clamour. 😉

All three agree on this: that if you plug the DoI’s first letters into the B1 ciphertext, mysterious patterns do appear (more on those shortly). But for many years, my view has been that Gillogly’s end conclusion, though clear-headed and sincere, was both premature (because I don’t believe he had eliminated all possible explanations) and unhelpful (because it had the possibly unintentional effect of stifling nearly all subsequent cryptological research into the Beale ciphers).

Regardless, it seems highly likely that almost exactly the same DoI was used to construct B1 as was used to encipher B2. This is because the statistically improbable mysterious patterns only emerge in the B1 plaintext if you use the DoI.

Furthermore, what I think is quite striking is, as I pointed out some years ago, that if you use the corrected cipher table (i.e. the cipher table generated from the same DoI and using the same numerical mistakes as were used in the cipher table used to construct the B2 cipher text), the mysterious patterns not only remain, but become even more statistically improbable than before.

What this implies, I believe, is that not only was the same non-standard DoI used in both, but also the same enciphering tables derived from it, numerical errors and all.

Here’s what B1 looks like when combined with the raw DoI (numbers above 1000 map to ‘?’)

s c s ? e t f a ? g c d o t t u c w o t w t a a i w d b i i d t t ? w t t a a b b p l a a a b w c t
l t f i f l k i l p e a a b p w c h o t o a p p p m o r a l a n h a a b b c c a c d d e a o s d s f
h n t f t a t p o c a c b c d d l b e r i f e b t h i f o e h u u b t t t t t i h p a o a a s a t a
a t t o m t a p o a a a r o m p j d r a ? ? t s b c o b d a a a c p n r b a b f d e f g h i i j k l
m m n o h p p a w t a c m o b l s o e s s o a v i s p f t a o t b t f t h f o a o g h w t e n a l c
a a s a a t t a r d s l t a w g f e s a u w a o l t t a h h t t a s o t t e a f a a s c s t a i f r
c a b t o t l h h d t n h w t s t e a i e o a a s t w t t s o i t s s t a a o p i w c p c w s o t t
i o i e s i t t d a t t p i u f s f r f a b p t c c o a i t n a t t o s t s t f ? ? a t d a t w t a
t t o c w t o m p a t s o t e c a t t o t b s o g c w c d r o l i t i b h p w a a e ? b t s t a f a
e w c a ? c b o w l t p o a c t e w t a f o a i t h t t t t o s h r i s t e o o e c u s c ? r a i h
r l w s t r a s n i t p c b f a e f t t

Of the many artificial-looking sequences here, the one that caught Hammer’s and Gillogly’s eyes was:

a b f d e f g h i i j k l m m n o h p p

If we instead plug the same set of B1 numbers into the corrected DoI cipher table, this is what you get:

s b s ? e t f a ? g c d o t t u c w o t w t a a i s d b t i d t t ? w t f b a a b a d a a a b b c d
e f f i f l k i g p e a m n p w c h o c o a l l p m o t a m a n h a b b b c c c c d d e a o s d s t
b n t f t a t p o c a c b c d d e p e t p f a b t h i f f e h u u b t j t t t i h p a o a o s a t a
b t t ? m n m p a a a a r b o p j d t f ? ? t s b c o h d a f a c p n r b a b c d e f g h i i j k l
m m n o h p p a w t a o m b b l s o e s a t o f i s p c t a o l b t f l h d o a h g b w t e n c l c
a s s a a s t a t d t g t a w g f e a a o c a a a t t w h t t t a a o e t s a f a a s b s t c i h r
c a b t o t s c t d c n h w t s t e h i o o a t s t w t t s o f a a s t a a m s i w c p c w s o t l
i n i e e i t t d a t t p i u f a e r f a b p t c t a o i d n a t t o a t s t a ? ? a t m a t w n w
t t o c w t o t p a t s o t e b a t r c h b t o g a w c d r o l i t i a h l w a a s ? b c s t a f a
e w c m ? f t o w l t s o c c t e w t a f o a o w t t t t t o t h r i s u e o h a c u a f ? p o i h
r m s s t r a s n i t p c t u o w f t t

This yields even more mysteriously ordered patterns than before:
* a a b a d a a a b b c d e f f i f
* a b b b c c c c d d e
* a b c d e f g h i i j k l m m n o h p p

Sorry, Jim, but something is going on there to cause feeding B1’s numbers into the refined DoI to produce these patterns: and even if I agree that the rest of the Beale pamphlet is a steaming heap of make-believe Boy’s Own backfill, I still don’t think the B1 ciphertext is a hoax. There’s just too much order.

Filling In The Gaps

Now, if it is true that exactly the same cipher table was used to construct both B1 and B2 (and though I believe this is highly likely, I have to point out that this remains speculative), these mysterious patterns may offer us the ability to advance our understanding of the cipher table yet further. This is because we can look at those places where the mysterious patterns break down in mid-sequence, and use those places to suggest corrections either to the table or to the B1 ciphertext itself. That is, even if we can neither decrypt nor understand B1, we can still use its mysterious plaintext patterns to refine our reconstruction of the enciphering table used to construct it and/or our understanding of the B1 ciphertext itself.

150=a 251=a 284=a 308=b 231=b 124=c 211=d 486=e 225=f 401=f 370=i 11=f

370=importance BUT 360=forbidden, so I suspect that 370 may have been a copying slip for 360.

24=a 283=c 134=b 92=c 63=d 246=d 486=e

283=colonies BUT 284=and, so I suspect that 283 may have been a copying slip for 284.

890=a 346=a 36=a 150=a 59=r 568=b

59=requires, but I’m not sure what happened here.

147=a 436=b 195=c 320=d 37=e 122=f 113=g 6=h 140=i 8=i 120=j 305=k 42=l 58=m 461=m 44=n 106=o 301=h 13=p 408=p

301=history BUT 302=of, so I suspect that 301 may have been a copying slip for 302.

OK, I’d agree this isn’t a huge step forward: but given that the printed version of (the solved!) B2 has seven similar copying slips…

* B2 index #223 is ’84’, but should be ’85’
* B2 index #531 is ’53’, but should be ’54’
* B2 index #571 is ‘108’, but should be ‘10,8’
* B2 index #590 [#591] is ‘188’, but should be ‘138’
* B2 index #666 [#667] is ‘440’, but should be ’40’
* B2 index #701 [#702] is ’84’, but should be ’85’
* B2 index #722 [#723] is ’96’, but should be ’95’

…I’d expect that we’re likely to have between 10 and 20 copying slips in B1’s series of numbers. That, combined with the larger ratio of homophones (i.e. as compared with the size of the ciphertext), keeps pushing B1 out of the range of automated homophonic ciphertext solvers. So all we can do to try to correct for those may well be a help!

18 thoughts on “Refining Beale Cipher B1’s cipher table…

  1. Nick:
    Thank you for this interesting article! But help me get your point:
    What patterns do you mean by “There’s just too much order.”? Can order refute the assumption that B1 is a hoax? If I get this right, the alphabetical sequences (that now, due to the refined DoI table, catch the eye even more) made Gillogly state: “My inclination is to a third possibility: that at least the first document, B1, is a hoax. I visualize the encryptor selecting numbers more or less at random, but occasionally growing bored and picking entries from the numbered Declaration of Independence in front of him, in several cases choosing numbers with an alphabetic sequence.”

  2. James Pannozzi on November 15, 2018 at 1:06 pm said:

    Interesting !

    1980 was about the first time I had heard of the Beale, probably some article in Omni magazine intrigued me. I was then a programmer using mainly 8080 assembler to create embeded systems for a metrology company. The wild and halcyon days of making code fit into 32 K Eproms (yes ! “k” !!) and doing hand patches of the assembled code (LDA was hex 3A if i recall correctly…etc.etc.)all
    led to the delightful idea of coding up some attempts at Beale. But when I heard about Gillogly’s conclusion, I stopped any effort because it seemed obvious that Mr. Ward was in the in the pamphlet sales business, which is where his treasure lay. Now I’m not sure any more but the thought occurs that with the computers of today, even children’s game machines have more power than I had then, a solution, if there is one, should be doable with a desktop computer.

  3. Bart Prine on November 15, 2018 at 2:42 pm said:

    now to preface this, I am NOT a cryptologist. But I have a facsimile Voynich and have found such facinating all my life. I am going to ask a silly question here so bare with me: You said: “a number N in the B2 ciphertext corresponds to the first letter of the Nth word in the DoI” Has anyone tried using the same system, the same “off” DOI, and instead used the LAST letter of each corresponding word? Or, used a combination like say: use the system to find letter translated via system one in cypher 2, then pull say the last letter of that word and use it on cypher 1 then if such a system does work, repeat the process 1 to 3 (that is, translate a word for cypher 1 then use the translated word to derive the letter for cypher 3)? Just a thought.

  4. Bart Prine: people have tried all manner of tweaks and adjustments. The statistically improbable (AKA mysterious) patterns only show themselves in the first letters – there is no similar pattern from the second letter, the last letter, or the penultimate letter etc. It is a great mystery! 🙂

  5. milongal on November 15, 2018 at 8:39 pm said:

    I’m not seeing 568=b?

    of(565) new(566) appropriations(567) of(568) lands(569)
    568=567=’A’, perhaps?

    and maybe 59=595 = ‘A’ (alone)? (if he’s scribbled stuff by hand and then typed it, there’s at least 2 opportunities to drop a digit, no?).

  6. Thomas: the problem with Gillogly’s ‘third way’ is that it’s indistinguishable from someone picking random homophones in a slightly different cipher arrangement from the one used for B2. That is, what we see only points to a hoax if you assume that it uses broadly the same tables as B2 with the same intention as B2, which wasn’t a hoax. So it’s somewhat contradictory.

  7. Hey Nick,

    There is indeed more than meets the eye with these unsolved Beale ciphers and it would be rather easy to classify them as hoaxes.

    It is worth noting that all 3 Beale ciphers have “incremental number series”. For example, B3 has “21 34 77 319 374 382 675 684 717 864″. These aren’t coincidences either. Testing the significance of these incremental series versus randomizations, then B1 = 4.61 sigma, B2 = 2.72 sigma and B3 = 9.86 sigma!

    I haven’t checked but I wonder if these incremental series line up with the”abcdefghij…” patterns you mentioned.

    A few other observations. There are only 22-23 letters in your transcription and Chi2 versus English is rather low at 267.18 and 289.29 for your corrected version while the letter “e” does not appear all to often.

  8. Jarlve: thanks for your very interesting observations! I’ve got a couple more Beale posts planned very shortly (one more on B1, and then one on B3) and I’ll try to include stuff on your numerically incrementing patterns there, I don’t recall anyone flagging them before (but then again, there are a fair few older books on the Beale Papers I haven’t been able to afford, so I can’t claim encyclopaedic knowledge on the subject).

  9. Reading JarIve’s post, Benford’s Law came to my mind. Could that help tell cipher from hoax? Couldn’t find anything on Benford’s Law and cryptology.

  10. Thomas: I suspect (though I haven’t tried it) that Benford’s Law will give slightly different results for B2 as compared to B1/B3, a statistical ‘signature’ that might well be a weak indicator that different cipher systems are in play. One of the diagrams I have planned for my next Beale post maps the index usage for all three Beale ciphers, which is interesting because even though they are all “front-heavy” (i.e. biased to low numbers), they tail off in noticeably different ways.

  11. milongal on November 18, 2018 at 8:13 pm said:

    Wouldn’t a string of increasing numbers sort of fit with the idea of someone flicking through a book looking for the next occurence of a particular letter? You might point out that there’s a few i’s between 77 and 319, but I’d suggest that’s a sort of deliberate leap to further in the document, and then go looking for more i’s.

    I think there’s potentially a strong human factor to consider – specifically that the ‘rules’ the encryptor followed are potentially a bit haphazard and inconsistent rather than designed as a strict algorithm.

  12. Robert Keller on November 19, 2018 at 9:21 pm said:

    The second cipher gives all the informations needed to make the story interesting. This also includes information about the content of the third and the first cipher. This means that the second cipher was written for a reader unable to read the other two cipher. This makes sense if the other two cipher didn’t contain any message since the whole story is a hoax. Also the a b b b c c c sequences indicate that at least the first cipher didn’t contain any meaningful message.

  13. Robert Keller: it’s a good opinion you have there – to be precise, it is an opinion that has served as the de facto mainstream cryptologic position on the Beale Ciphers since Jim Gillogly first proposed it in Cryptologia all those years ago.

    Doesn’t make it right, though. 😉

  14. Robert Keller on November 21, 2018 at 6:38 pm said:

    Nick Pelling: There are far to many abc-sequences. You can’t explain them away.

  15. Robert Keller: what the sequences prove is (a) the B2 cipher table is causally involved, but also (b) the way that the B2 cipher table was used for B1 was not the same as for B2. Now, I agree that randomly sliding your hand around the cipher table is one hypothesis that fits the facts (AKA Gillogly’s hoax hypothesis) – but it would be an unimaginative code-breaker who couldn’t conceive of at least twenty other possible explanations that also fit those same facts.

  16. stanleyclayton on November 29, 2018 at 7:14 pm said:

    II

  17. Michael on February 20, 2019 at 1:15 am said:

    Just curious. What would B1 and B3 look like if you reversed the method used to decipher B2 ( I.e. if you counted the offsets from lower numbers and corrected the offsets at the higher numbers). Just a thought, don’t have much time to do it myself

  18. I’ve been thinking about the probabilities involved in the Hammer/Gillogly sequence, and hoping someone can lend insight.

    In his paper Gillogly calculates the probability that a monotonically increasing sequence 14 characters long would occur. He’s thinking about DEFGH IIJKL MMNO but it could be any sequence of that length. He comes up with about 10^12 to 1, with a few assumptions to simplify the calculation, which is the “one in a million million” that comes up regularly.

    Another way of looking at such a sequence is simply as a one possible arrangement of fourteen letters. The probability that this particular arrangement occurs is much much lower than the probability that any monotonically increasing sequence would occur – which makes the occurrence seem even less likely.

    But here’s the part that I’m trying to reconcile: in random arrangements the mathematical chances that DEFGH IIJKL MMNO occurs are exactly the same as the chances that IMFDN EGKMI HJLO would occur, or GHODM IMKLJ NEIF would occur, neither of which anyone would consider notable. I used the same letters shuffled here to make a point, but this basic idea applies regardless of the letters or lengths involved. If you win the Powerball lotto (US) with the numbers 1, 2, 3, 4, 5, and 6 then people are going to be shouting that it was rigged, but if you win it with 12, 15, 28, 42, 61, and 21 then no one will question it, even though your chances with those numbers are exactly the same. It’s just that there are more possibilities that have an indistinct “look” like the second one, which tricks us into thinking the first is less likely. The only thing we can definitively conclude is that Powerball is a ripoff, and maybe if you’re going to waste your money you should choose a ridiculous looking sequence so everyone will think you’re a god if you pull it off, which you won’t.

    To get to my point: in learning about cryptography I’m seeing a lot of “this is so improbable that it has to be right/significant/proof/etc”, but math alone doesn’t seem to support that sort of conclusion. Maybe this is already built into the experienced cryptographer’s thinking – I appreciate how much Nick brings up the importance of context – but the mathematical probability alone of the Hammer/Gillogly string doesn’t seem to stand as proof of anything. The string MYNAM EISTH OMAS is equally as improbable as the string NYTIM AMHSA OMSE, but in the context of the Beale Ciphers if you found the first string it would be undeniable, and the second would be useless. Context is indispensable.

    Maybe it’s also good to group into “structured” and “unstructured” occurrences, because even if the underlying probabilities are the same, the structured ones are more likely to be significant. DEFGH IIJKL MMNO is certainly structured in a way that warrants attention, and IMFDN EGKMI HJLO is not, even though the math would tell us they are equally probable.

    So… no earth shattering conclusions about the B1 here. I’m just trying to work out how compelling the Gillogly string is. It’s structured, for sure, which makes it more worthy of note, but I’d say I’m on the fence with the context question. Strings of monotonically increasing letters have a certain importance in cryptography, but on the other hand there’s nothing about the sequence that relates it definitively to the Beale story. So the string is improbable, structured, and with unclear context if any, and it’s surrounded by improbable, unstructured sequences without context. The additional patterns Nick is uncovering add to the structure of the whole, and make it more compelling. I have to say that I’m not convinced by the math alone that work on it should have dwindled in the wake of Gillogly’s paper.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation