Welcome Guest [Log In] [Register]
Welcome to Crypto. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Can Anyone Break This????
Topic Started: Mar 30 2008, 05:32 AM (700 Views)
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
Paarth Dave
Apr 10 2008, 09:52 AM
This is very interesting....
Anyways, what would be the ciphertext of the code you have posted just above????? Will it be simple substitution with Patristocrats or something else??

The plaintext I quoted above was from an Aristocrat - simple substitution preserving word separation.

Code:
 
RBJG RBVL RBVFYO SFUCBG, SFCWJZQ SFUZAYO XVW ZCL SFCEYQX.
RBVHG RBVGI NVLG, ZIQL ECKUBQ XQVH, XVAQ XCFQ IVKCZ.


Notice - none of the words have repeated letters, there are thousands of possibilities for each of them. (As opposed to words like "ABCA", which has only eight possibles, and which is most often "that".)

Most common words in English usually are ETAOINS, in this, they're ANOERMG.

Look at repeated trigrams, RBV appears four times, SFC, and SFU appear twice each.

RBV = gna
SFC = pri
SFU = pro

Which are way down on the list of common english trigrams.
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
Paarth Dave
Advanced Member
[ *  *  * ]
Amazing substitution!
I wonder if cryptographers are having a bad time with such ciphertext, then what will happen if the above ciphertext is made into Paristocrats!!

Cryptography Vanquished....
Offline Profile Quote Post Goto Top
 
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
Paarth Dave
Apr 11 2008, 12:38 AM
Amazing substitution!
I wonder if cryptographers are having a bad time with such ciphertext, then what will happen if the above ciphertext is made into Paristocrats!!

Actually, these aren't much different that Pats when it comes to breaking them.

The most effective crack into Aristos is usually pattern words. Most messages, even short messages, have at least one word for which there are only a very few possibilities.

Consider the previous paragraph. There's only one match in my dictionary for "possibilities", one for "effective", two for "messages" (other is "corridor"), six for "usually".

So a search of a pattern word dictionary can break most Aristos almost instantaneously. Unless, of course, the message is intentionally written to avoid pattern words. If there are none, then you have to fall back on letter frequency, digram and trigram frequency, vowel-consonant classification, etc. Which are the tools you use to crack Pats.
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
Paarth Dave
Advanced Member
[ *  *  * ]
What do you mean by a pattern word dictionary? Does it mean manually checking any dictionary for patterns?? That would be quite tedious.

Cryptography Vanquished....
Offline Profile Quote Post Goto Top
 
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
Paarth Dave
Apr 11 2008, 07:50 AM
What do you mean by a pattern word dictionary? Does it mean manually checking any dictionary for patterns?? That would be quite tedious.

I mean a list of words organized by the pattern of their letters.

There's one in appendix D of FM 34-40-2, which is available online (click the first link and scroll to table D-3).

Personally, I prefer a computer-searchable file. A bit from mine:

Quote:
 

abacdae ejected
abacdae elected
abacdae emerged
abacdae emerges
abacdae enemies
abacdae erected
abacdae exerted
abacdae ezekiel
abacdaedf available
abacdaedf availably
abacdaefa emergence
abacdaef alastair
abacdaef anagrams
abacdaef arabians
abacdaef emergent
abacdaefg adaptable
abacdaefgah emergencies


So, if you have a word in an Aristo like "rarzvrf", you convert it into its pattern, "abacdae", then search the pattern file for the words that could match it. In this case, "ejected", "elected", "emerged", etc.

There will always be words in your plaintext that aren't in your word list, and there are a lot of patterns that have so many possibilities as to be of no help at all. I have more than 3000 possibles for "abcdef". But there are a lot of words that have unique or almost unique patterns. With more than 45,000 words in my list, almost 13,000 have only one word that matches, more than 2500 have two matches, more than 1000 have three matches.
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
Paarth Dave
Advanced Member
[ *  *  * ]
Is there an application which searches for word combinations when patterns are entered as I am too lazy to manually go through the above mentioned list and find the correct pattern. I hope someone in this world might have made a pattern-word search application.

Cryptography Vanquished....
Offline Profile Quote Post Goto Top
 
Revelation
Member Avatar
Administrator
[ *  *  *  *  * ]
It probably exists. I could also make one myself.

Quote:
 
manually

It's not a lot of work. If you find a long piece of text seperated by some seperator, you can make a pattern and then use the search of notepad to find what the word could be.
RRRREJMEEEEEPVKLWENFNVJKEEEEEAOLKAFKLXCFZAASDJXZTTTTTTTLSIOWJXMOKLAFJNNKFNXN
RAGRBAQEMHIGDJVDSEOXVIYCELFHWLELJFIENXLRATALSJFSLCYTKLASJDKMHGOVOKAJDNMNUITN
RRRRLJVEEEEECLYVYHNVPFTAEEEEEMWLMEIRNGLARWJAKJDFLWNTIERJMIPQWOTZEOCXKNUBNXCN
RJIRPOWEANFUSNCZVDVZNMSFEKLOEPZLDKDJWSAAAAAAAOERHJCTNCKFRIMVKSOFOMKMANREWNBN
RZUDRGXEEEEENFQIDVLQNCKNEEEEEDGLLLLLLAWIOSNCDARLODMTOEJXMILDFJROTKJSDNLVCZNN
Offline Profile Quote Post Goto Top
 
Paarth Dave
Advanced Member
[ *  *  * ]
So can you send me or even post here the setup file of the application? That would be of great help to me..

Cryptography Vanquished....
Offline Profile Quote Post Goto Top
 
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
Paarth Dave
Apr 12 2008, 12:25 AM
Is there an application which searches for word combinations when patterns are entered as I am too lazy to manually go through the above mentioned list and find the correct pattern. I hope someone in this world might have made a pattern-word search application.

What I use is a collection of shell scripts, using grep, awk, sed, et al. It's not something that is easily portable to folks using non-Unix systems, and it's not packaged for anyone else to use.

The problems are pretty simple, if you approach them in a systematic way.

Have you done any programming?

Code:
 

# Canonize_list.awk
BEGIN {
letters = "abcdefghijklmnopqrstuvwxyz"
}

{
for (a in used) used[a] = 0;
used["'"] = "'"

word = tolower($0)

n = 1
result = ""
for (i=1; i<=length(word); i++) {
 c = substr(word, i, 1)

 if (!used[c]) {
  used[c] = substr(letters, n++, 1)
 }

 result = result used[c]
}

print result, word
}

When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
Paarth Dave
Advanced Member
[ *  *  * ]
Yes..I have learnt few programming languages. I think the above code is of C programming. Anyways, after the code is executed, then what to do? And do tell me the programming language used for the above mentioned code.

Cryptography Vanquished....
Offline Profile Quote Post Goto Top
 
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
Paarth Dave
Apr 13 2008, 01:35 AM
Yes..I have learnt few programming languages. I think the above code is of C  programming. Anyways, after the code is executed, then what to do? And do tell me the programming language used for the above mentioned code.

The above is written in awk, which is a simple little text-processing language written by Alfred Aho, Peter Weinberger, and Brian Kernighan, and yes that is the same Kernighan as in Kernighan and Ritchie, the authors of "The C Programming Language", and yes, it does have a C-like flavor.

The structure of an awk is specific to its intended job - processing the contents of text files. The basic structure is <boolean-expression> <compound-statement>. Each line is read, if it the boolean expression matches, the compound statement is executed. In the above program, there are two compound statements, the first with the special boolean expression "BEGIN", the second with an empty boolean expression.

"BEGIN" is a special case, its matching compound expression is executed prior to any lines being read.

An empty boolean-expression is evaluated as true, so the compound statement is executed on every line of the file.

In the compound statement, the special variable $0 evaluates to the contents of the line being processed.

So what the above does is read a file containing one word per line, and outputs the word pattern and the word, one per line, separated by a space.

So if the input is:
Code:
 

ejected
elected
emerged


the output is:
Code:
 

abacdae ejected
abacdae elected
abacdae emerged


As for how it fits into the larger picture, I've created a new thread in cryptanalysis->general.

When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
Paarth Dave
Advanced Member
[ *  *  * ]
The output is of no use to me as I can myself make patterns out of words. I am searching for an application which accepts the pattern for eg. abaced, abcdbc, abadce and then lists the possible word combinations as the output.

Cryptography Vanquished....
Offline Profile Quote Post Goto Top
 
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
Paarth Dave
Apr 13 2008, 06:50 AM
The output is of no use to me as I can myself make patterns out of words. I am searching for an application which accepts the pattern for eg. abaced, abcdbc, abadce and then lists the possible word combinations as the output.

If you're making the patterns in your head (which is easy enough), all you need is a text editor.

Load your file of wordlists into the editor, and search for the pattern.

Me, I use grep, wrapped in a simple shell script.

If you want something more sophisticated, write it.
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
Paarth Dave
Advanced Member
[ *  *  * ]
OK, Thanks a lot. I'll surely let you know if this manual method works.

Cryptography Vanquished....
Offline Profile Quote Post Goto Top
 
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
Paarth Dave
Apr 13 2008, 09:15 AM
OK, Thanks a lot. I'll surely let you know if this manual method works.

The manual method will only work once you have a pattern word dictionary, and the problem is that pattern word dictionaries are only useful to the extent that they match the plaintext that you're trying to recover.

That is, you'll want different pattern word dictionaries, for the different languages you are trying to break. The ACA has a section called "Xenocrypts", which has Aristos and Pats encrypting plaintexts written in Spanish, German, Latin, Esperanto, Swahili, etc. If your texts are ASCII, instead of A-Z, or unicode, or whatever, you'll need different pattern dictionaries.

So it's not so much that you have a pattern word dictionary that matters, but that you know how to make one from samples of the plaintext, in whatever form you're using.

I posted some scripts, in Cryptanalysis->General, explaining how I go about making pattern word dictionaries, for the problems I'm trying to solve. The specifics of the process I use is based on the tools which I have available. If you have access to a different tool set, you'd naturally use those. The general process, though, is pretty simple - extract the words, sort, eliminate duplicates, generate the pattern for every resulting unique word.

It's there that having a routine that will generate a pattern makes a difference. Generating the pattern for a single word is simple, doing it for the tens of thousand unique words that you'd use to make a pattern word dictionary is not.

BTW: a quick google search yielded this, which has a pattern word list of English words, available for download. I don't like the format of the file, as it's not suitable for computer searching. But it might be a useful start.
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Challenges · Next Topic »
Add Reply