Question

Decryption of a substitution cipher via Java

Asked by: uplinkd

I have a piece of cipher text, and I need to write a Java program to decrypt it, but I'm unsure how to. I know that you need to do a frequency analysis, and then cross reference with a dictionary list, which is fine when I'm doing it on paper through trial and error, but how can I write a program to do the same thing?
(ps i have'nt included the cipher text cause it's about a page long, but i'll post it if you need me to)

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-11-15 at 02:10:56ID22962428
Tags

java

,

substitution

,

cipher

,

decrypt

Topics

Algorithms

,

Encryption for Network Security

,

Java Programming Language

Participating Experts
4
Points
0
Comments
16

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Cipher and Cryptix : Last block encrypts/decrypts incorr…
    Any ideas on why this code will not encrypt/decrypt the last block of data passed for encryption/decryption. public class EncryptFile { FileInputStream in; FileOutputStream out; public void encrypt() throws Exception{ java.security.Security.addProvider(new cryptix.p...
  2. Vignere Cipher
    Hello All, I am struggling to write a Vignere cipher program using Java code, just like the one on this website: http://www.sharkysoft.com/misc/vigenere/ Here are the requirements: The vignere encoder/decoder uses a plain text message as input and produces a plain text en...
  3. Cipher parameters for non-EBC mode encryption & decry…
    It seems that when I encrypt & decrypt data using a Cipher in EBC mode, I do not need to specify any parameters beyond the algorithm string (e.g. "AES/EBC/PKCS5Padding"). However, I want to use CBC or OFB mode. These modes seem to require additionally parameters...
  4. Caeser Cipher
    Looking for Caeser cipher model for: 1. Encrytion 2. Decryption 3. Quit for text string.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: contactkarthiPosted on 2007-11-15 at 07:49:38ID: 20289802

coupld you just explain with a simple cipher text on how you do it

 

by: uplinkdPosted on 2007-11-15 at 11:22:42ID: 20291562

unfortunately that's the problem.
I don't know how it's been encoded other than it's been done via a substitution cipher. I need to write a Java program that will decrypt the substitution cipher text, but without knowing how it was encrypted.
Here's the cipher text:

UFHLFXHTHKHYFIRJRTFHTIXMFERTUSHLFPFMHXF.RTJWRTH,RTUWFFRXWUWJFTUGMO,RUFTUFMFIUWFMFHDYSBQSFUMOHKSTFSBUWFQSDRUFHYGKFYFTUK.UWFBRBUFFTUWJFTUGMOKHEVHQHTFTTSLDFRURTUSHMFDRXRSTSBHFKUWFURJRKY--UFHRKY.UFHRKYRKHJGDUBSGTIFISTUWFHISMHURSTSBUWFLFHGURBGDHYSTXUWFKSMIRIBHJUKSBFPFMOIHOFCRKUFTJF.RURTJGDJHUFKQGMRUOHTIWHMYSTO,UWFYOKUFMOSBYGUGHDJWHMRUO,UWFMSYHTURJRKYSBUWFKSJRHDSMIFM.RURKFKKFTURHDDOHESMKWRQSBUWFRYQFMBFJU,HKRURKHUFTIFMHUUFYQUUSHJJSYQDRKWKSYFUWRTXQSKKRLDFRTUWRKRYQSKKRLDFUWRTXEFATSEHKDRBF.UWFQWRDSKSQWOSBUFHRKTSUYFMFHFKUWFURJRKYRTUWFSMIRTHMOHJJFQUHTJFSBUWFUFMY,BSMRUFCQMFKKFKJSTVSRTUDOERUWFUWRJKHTIMFDRXRSTSGMEWSDFQSRTUSBPRFEHLSGUYHTHTITHUGMF.RURKWOXRFTF,BSMRUFTBSMJFKJDFHTDRTFKK;RURKFJSTSYRJK,BSMRUKWSEKJSYBSMURTKRYQDRJRUOMHUWFMUWHTRTUWFJSYQDFCHTIJSKUDO;RURKYSMHDXFSYFUMO,RTHKYGJWHKRUIFBRTFKSGMKFTKFSBQMSQSMURSTUSUWFGTRPFMKF.RUMFQMFKFTUKUWFUMGFKQRMRUSBFHKUFMTIFYSJMHJOLOYHARTXHDDRUKPSUHMRFKHMRKUSJMHUKRTUHKUF.UWFDSTXRKSDHURSTSBVHQHTBMSYUWFMFK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HRT.SGUSBUWFFHKUFMTKFHMSKFHZGFFT,UWFIRPRTFTRGAH,WSMT-JMSETFIHTIIMHXST-UHRDFI,MFKQDFTIFTURTWFMHMYSMSBBRMF.KWFEFDIFIUWFBRPF-JSDSGMFIMHRTLSERTWFMYHXRJJHGDIMSTHTIMFLGRDUUWFJWRTFKFKAO.LGURURKUSDIUWHUTRGAHBSMXSUUSBRDDUESURTOJMFPRJFKRTUWFLDGFBRMYHYFTU.UWGKLFXHTUWFIGHDRKYSBDSPF--UESKSGDKMSDDRTXUWMSGXWKQHJFHTITFPFMHUMFKUGTURDUWFOVSRTUSXFUWFMUSJSYQDFUFUWFGTRPFMKF.FPFMOSTFWHKUSLGRDIHTFEWRKKAOSBWSQFHTIQFHJF.UWFWFHPFTSBYSIFMTWGYHTRUORKRTIFFIKWHUUFMFIRTUWFJOJDSQFHTKUMGXXDFBSMEFHDUWHTIQSEFM.UWFESMDIRKXMSQRTXRTUWFKWHISESBFXSURKYHTIPGDXHMRUO.ATSEDFIXFRKLSGXWUUWMSGXWHLHIJSTKJRFTJF,LFTFPSDFTJFQMHJURJFIBSMUWFKHAFSBGURDRUO.UWFFHKUHTIUWFEFKU,DRAFUESIMHXSTKUSKKFIRTHKFHSBBFMYFTU,RTPHRTKUMRPFUSMFXHRTUWFVFEFDSBDRBF.EFTFFIHTRGAHHXHRTUSMFQHRMUWFXMHTIIFPHKUHURST;EFHEHRUUWFXMFHUHPHUHM.YFHTEWRDF,DFUGKWHPFHKRQSBUFH.UWFHBUFMTSSTXDSERKLMRXWUFTRTXUWFLHYLSSK,UWFBSGTUHRTKHMFLGLLDRTXERUWIFDRXWU,UWFKSGXWRTXSBUWFQRTFKRKWFHMIRTSGMAFUUDF.DFUGKIMFHYSBFPHTFKJFTJF,HTIDRTXFMRTUWFLFHGURBGDBSSDRKWTFKKSBUWRTXK.

 

by: contactkarthiPosted on 2007-11-15 at 11:45:29ID: 20291757

have a look at this link they provide some info about frequent letters and stuff

http://www.cs.utexas.edu/users/scottm/cs303e/Assignments/Assignment_11.htm

 

by: contactkarthiPosted on 2007-11-15 at 15:01:43ID: 20293616

some things i observed are

char - no of occurrences - pcnt

F-1466-12
U-1109-9
H-923-8
S-856-7
T-816-7
R-789-6
K-730-6
M-622-5
W-601-5
D-393-3
I-359-3
G-351-3
J-326-2
B-288-2
Y-282-2
E-205-1
Q-205-1
X-187-1
O-169-1
L-147-1
P-102-0
A-51-0
V-15-0
C-15-0
Z-14-0
N-0-0

my gues is to replace f with a SPACE and similarly

Std frq - ETAONIRSHLDCUPFMWYBGVJKQXZ
Obs frq - FUHSTRKMWDIGJBYEQXOLPAVCZN

have a method like below and pass on the text

private static String replaceString(String input)
      {
            String ciphered = "FUHL";
            String transformed = " IAM";
            for (int i = 0; i < ciphered.length(); i++)
            {
                  input = input.replace(ciphered.charAt(i),transformed.charAt(i));
            }
                  
            return input;
      }

 

by: contactkarthiPosted on 2007-11-15 at 16:59:51ID: 20294718

ignore the previous block of code

use the below one instead


	private static String replaceString(String input)
	{
		String ciphered = "FUHSTRKMWDIGJBYEQXOLPAVCZN";
		String transformed = "ETAONIRSHLDCUPFMWYBGVJKQXZ";
		StringBuffer output = new StringBuffer();
		String c;
		for (int i = 0; i < input.length(); i++)
		{
			c = input.charAt(i)+"";
			if(ciphered.indexOf(c)!=-1)
				output.append(transformed.charAt(ciphered.indexOf(c)));
			else
				output.append(c);
		}
			
		return output.toString();
	}

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

Select allOpen in new window

 

by: uplinkdPosted on 2007-11-29 at 10:02:10ID: 20375654

thanks for the comment, and sorry for the late reply, i´m actually away on holiday, and have only just managed to find a computer with internet access!
This is almost what i need, however the frequency count alone will not decrypt the text fully, you actually need to do digram and trigram checks as some of the letters you listed are not correctly decrypted, and then a full dictionary check to find the spaces. I´ve managed to decrypt the text fully by hand, but am still having trouble writing methods to do these digram/trigram checks, as the method i used for decrypting relies a lot on trial and error.
Again, any help would be appreciated.
Cheers (and i´ll check this more regularly now i´ve found a computer lol)

 

by: contactkarthiPosted on 2007-11-29 at 11:12:52ID: 20376352

can you post the code and the algorithm or the steps you are trying to acheive

 

by: uplinkdPosted on 2007-12-01 at 02:27:09ID: 20387556

basically, from the above encrypted text, i need to carry out a linguistic attack, using frequency analysis and to discover possible decryption via word lists, and also use word lists to add spaces into the text.
I've managed to decrypt it via a trial and error process manually, but i'm finding it difficult to write a program to do this, which is the goal. When i did it manually i wrote bits of code to count the number of instances that the 30 most common digrams and the 12 most common trigrams occured in the text, but even then i had to take the results with a 'pinch of salt'.
Do you reckon i'm going the wrong way about writing the program? Is there a better way of doing it?
I have to use frequency analysis and word lists, but possibly digrams and trigrams only work if decrypting by hand due to the small margins in occurences conflicting with each other.
Unfortunately i don't have any algorithms (that's really the bit i need to discover i think), but the basic steps i need to achieve are: an automated linguistic attack via frequency analysis and word lists, and in particular the use of word lists to to automate the detection of possible word decryption and the insertion of spaces into the text.

Thanks for sticking with me on this :-)

 

by: JimFivePosted on 2007-12-20 at 13:17:07ID: 20509949

I doubt that there is any algorithm that will be 100%, especially without the word breaks.

My first try would be something like:
1.  Perform letter frequency count and substitute in based on language frequency counts.
2.  Start at the beginning of the text.
2a.  Find each word in succession from the word list (I assume provided)
2b.  If a word cannot be found "spell check" the text area to find a word from the list that is close.  Make that substitution.
Go back to 2.
3.  You may want to "declare" a substitution as Final and not let it be changed by future actions, if you do this it would affect your "spell check" function.

--
JimFive

 

by: JimFivePosted on 2008-01-11 at 11:47:20ID: 20639558

I had another thought on this one.

It is fairly easy on modern equipment to brute force your ciphertext and create 26! possible decryptions.

You could then run through word finding/spell checking routine to score each possible solution.  Highest score wins.
--
JimFive

 

by: uplinkdPosted on 2008-01-13 at 14:06:00ID: 20649397

I've actually managed to solve this one with the use of regular expressions and a mixture of lisp and java, I basically used NLP techniques mixed with the java code and a dictionary list for word matching, this gave me a true automatic system (near enough anyway) but thanks for all the comments and ideas.

 

by: uplinkdPosted on 2008-01-13 at 14:08:21ID: 20649411

sorry, not lisp, i meant java and prolog

 

by: ozoPosted on 2008-01-25 at 08:09:46ID: 20743657

I'd look at patterns like RTJWRTH = 1234125 and match them  to words in your dictionary
trying different word assignments to different patters to find consistent letter assignments
If you don't know where the word breaks are, you can drag the patterns along the text
You can also look at bigram or trigram frequencies

 

by: uplinkdPosted on 2008-01-25 at 09:47:10ID: 20744566

i already said on my previous comment i've done this, don't know how to close the question, but i used digrams and trigrams to get letter frequencies, and then prolog bridged with my java code to use regular expressions to match the words with a word list.
Sorry the question's not closed, but I don't know how to close it, being as i solved it myself.

 

by: Vee_ModPosted on 2008-01-29 at 05:18:51ID: 20767441

Closed, 500 points refunded.
Vee_Mod
Community Support Moderator

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...