hi there!!
i recently started java courses and i don't have much knowledge of it. i really hope you can help me with this..
here's what has been asked:
A transposition cipher first chooses a key to number the columns, then write a plaintext in rows, and finally reads
the ciphertext by columns, staring with the column whose key letter is the lowest alphabetically. Shown below is
one example whereby a string ‘jamesbond’ is used as the key:
j amesbond
(5)(1)(6)(4)(9)(2)(8)(7)(3)
plaintext :
s e n d o n e send one million euros to my swiss
mi l l i on e bank account
uros to m
y s w i s s b ciphertext :
EIR NTOOTSCG EMBUADLSW
YSMUYANNLOSK E OINNOSCH
I IAE
Write a program TranspositionCipher.java that reads a key from the keyboard and a plaintext from a file
plain.txt, then displays the ciphertext. The plain.txt may contain multiple lines with lower case letters and
spaces. A sample of plain.txt is provided on the com6470 webpage, however your code should be able to handle
other input files. The ciphertext should be displayed on the screen using upper case letters and spaces. A key is a
sequence of lower case letters only, and any letter cannot appear more than once. If there is more than one space
left in the final row, they should be filled in with randomly generated lower case letters before encryption.
please heeeeellllpppppppp!! :)