Click here to Skip to main content
15,906,708 members
Home / Discussions / Java
   

Java

 
AnswerRe: call c# function in java Pin
Vitaly Shelest5-May-09 9:32
Vitaly Shelest5-May-09 9:32 
GeneralRe: call c# function in java Pin
raesa5-May-09 17:30
raesa5-May-09 17:30 
Questionconvert integer to 8 bits Pin
lost_in_code5-May-09 1:28
lost_in_code5-May-09 1:28 
AnswerRe: convert integer to 8 bits Pin
harold aptroot5-May-09 1:59
harold aptroot5-May-09 1:59 
QuestionDraw on top of picture Pin
LordLothar5-May-09 1:02
LordLothar5-May-09 1:02 
Questionbinary search tree error compliation error Pin
harshad bhatia3-May-09 23:30
harshad bhatia3-May-09 23:30 
AnswerRe: binary search tree error compliation error Pin
I am BATMAN4-May-09 5:43
I am BATMAN4-May-09 5:43 
Questionis there any decryption algorithm that uses a dictionary to decrypt an encrypted file? Pin
Ha lee3-May-09 14:47
Ha lee3-May-09 14:47 
well I have been working on an assigment and it states::

A program has to be developed, and coded in C language, to decipher a document written
in Italian that is encoded using a secret key. The secret key is obtained as random
permutation of all the uppercase letters, lowercase letters, numbers and blank space. As
an example, let us consider the following two strings:
Plain: “ABCDEFGHIJKLMNOPQRSTUVXWYZabcdefghijklmnopqrstuvwxyz0123456789 ”
Code: “BZJ9y0KePWopxYkQlRjhzsaNTFAtM7H6S24fC5mcIgXbnLOq8Uid 3EDv1ruVGw”
The secret key modifies only letters, numbers, and spaces of the original document, while
the remaining characters are left unchanged. The document is stored in a text file whose
length is unknown.
The program has to read the document, find the secret key (which by definition is
unknown; the above table is just an example and it is not the key used for preparing the
sample files available on the web course) using a suitable decoding algorithm, and write
the decoded document to a new text file.

And I know that I have to upload an English dictionary into the program but I don't why it has been asked.(may be not in that statement but I have to dO THAT). My question is , while I can do that program using simple encryption/decryption algorithm then what's the use of uploading the english dictionary in our program? So is there any decryption algorithm that uses a dictionary to decrypt an encrypted file? or can somebody tell me what approach or algorithm should I use to solve that problem???

An early reply (and also authentic one) will be highly appreciated from you.

Thank you guys.
AnswerRe: is there any decryption algorithm that uses a dictionary to decrypt an encrypted file? Pin
I am BATMAN4-May-09 5:47
I am BATMAN4-May-09 5:47 
AnswerRe: is there any decryption algorithm that uses a dictionary to decrypt an encrypted file? Pin
Ha lee4-May-09 10:39
Ha lee4-May-09 10:39 
QuestionHow to get/create Image from the given file name? Pin
Flying_Doc1-May-09 14:09
Flying_Doc1-May-09 14:09 
QuestionJ2EE on Server 2003 Standard Pin
SimonRigby30-Apr-09 1:20
SimonRigby30-Apr-09 1:20 
AnswerRe: J2EE on Server 2003 Standard Pin
adatapost3-May-09 17:37
adatapost3-May-09 17:37 
QuestionHow to do zigzag scanning in java Pin
Flying_Doc29-Apr-09 18:57
Flying_Doc29-Apr-09 18:57 
Questionmoving a graphic Pin
jonig1928-Apr-09 16:13
jonig1928-Apr-09 16:13 
AnswerRe: moving a graphic Pin
Nagy Vilmos28-Apr-09 23:01
professionalNagy Vilmos28-Apr-09 23:01 
Question[Message Deleted] Pin
jonig1928-Apr-09 10:46
jonig1928-Apr-09 10:46 
AnswerRe: move() graphics Pin
fly90428-Apr-09 11:37
fly90428-Apr-09 11:37 
Questionsaving files with current date and time as their names Pin
nicks1128528-Apr-09 2:01
nicks1128528-Apr-09 2:01 
AnswerRe: saving files with current date and time as their names Pin
Jimmanuel28-Apr-09 3:09
Jimmanuel28-Apr-09 3:09 
Questionsending an e-mail Pin
prasadbuddhika26-Apr-09 20:25
prasadbuddhika26-Apr-09 20:25 
AnswerRe: sending an e-mail Pin
Gil Messerman27-Apr-09 6:03
Gil Messerman27-Apr-09 6:03 
GeneralRe: sending an e-mail Pin
shrims4u17-May-09 6:48
shrims4u17-May-09 6:48 
Questionjava recursion problem Pin
harshad bhatia26-Apr-09 2:13
harshad bhatia26-Apr-09 2:13 
AnswerRe: java recursion problem Pin
CPallini26-Apr-09 23:26
mveCPallini26-Apr-09 23:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.