Andy B.

asked • 04/11/17

random monoalphabet cipher

Random monoalphabet cipher.

The caeser cipher, which shifts all letters by a certain amount, is easy to decipher. Try this, instead of numbers use letters. Consider this, the word is FEATHER. Remove duplicate letters, making FEATHR, and append the rest of the letters of the alphabet in reverse order.
FEATHRZYXWVUSQPONMLKJIGDCB
 
Now encrypt the letters as follows:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
|||||||||||||||||||||||||||||||||||||||
FEATHRZYXWVUSQPONMLKJIGDCB
 
Now, write a program that encrypts or decrypts a file using this cipher.

For example,

crypt –d –kFEATHER encrypt.txt output.txt

decrypts a file using the keyword FEATHER. You must always supply a keyword.

1 Expert Answer

By:

Patrick B. answered • 10/12/19

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.