I need help with a simple C++ encryption transposition Cipher program please?

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

need some help with the implementation.

please advices,
cheers

I'm too old for homework, maybe you can ask a question....?
how do i begin ?
just google sreach

________________________
Sogold acc - http://www.diencohuuthinh.com/sua-bep-tu/
Last edited on
Topic archived. No new replies allowed.