Question: Entry level python code 3. (2 points) (A Transposition Cipher: Swap-Them.) To encrypt a string a using the Swap- Them transposition cipher, the character in
3. (2 points) (A Transposition Cipher: Swap-Them.) To encrypt a string a using the Swap- Them transposition cipher, the character in position i is swapped with the character in posi- tion (key-i )%len(s) Implement encryption and decryption functions for this cipher called swapenc and swapdec. For example, svapenc (4, 'strong wind') should return nortsdniw g
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
