DanyDin
November 2nd, 2002, 09:30 AM
Hi
I need to write a program that deencrypt a Random Substitution cyper. (A can be G, B can be K and so on) only on lowercap letters.
I need to write it so it will test all 26! options and find a key word when the progrm finds the key word it should display the Plain text. obviously I should not wait for an answer since there is more then one and it would take more then 50 years to check all of them .
I was thinking to make it withg "26 FOR loop in eaqch other". I still can not make it work on a test String with 2 Letters .If any one has any good idea on a better way to do it.
I will be very glad
The code needs to be in C.
In case you are wondering why would I need to write such a code so Yes its for a Collage Excerise. and the Prof. does not want us to solve it with a simple frequency table (like you should you to break such a code.
any help would be welcome
Dany
I need to write a program that deencrypt a Random Substitution cyper. (A can be G, B can be K and so on) only on lowercap letters.
I need to write it so it will test all 26! options and find a key word when the progrm finds the key word it should display the Plain text. obviously I should not wait for an answer since there is more then one and it would take more then 50 years to check all of them .
I was thinking to make it withg "26 FOR loop in eaqch other". I still can not make it work on a test String with 2 Letters .If any one has any good idea on a better way to do it.
I will be very glad
The code needs to be in C.
In case you are wondering why would I need to write such a code so Yes its for a Collage Excerise. and the Prof. does not want us to solve it with a simple frequency table (like you should you to break such a code.
any help would be welcome
Dany