The user key (word) is entered and I want to use that to encrypt the message. The message is encrypted be reordering the key according the where the letters are in the alphabet. For example:
Key: 4312567
Plaintext: attackpostponeduntiltwoam
4 3 1 2 5 6 7
A T T A C K P
O S T P O N E
D U N T I L T
W O A M X Y Z
Ciphertext: TTNAAPTMTSUOAODWCOIXKNLYPETZ
transposition -e key <plaintext.txt> <ciphertext.txt>
transposition -d key <ciphertext.txt> <plaintext.txt>
where the -e option is associated with encryption and the -d option is associated with decryption