Implementing Column Permutation Encryption in Python

# Introduction In this challenge, we will be implementing the Column Permutation Encryption method. This method involves encrypting a plaintext by writing it down line by line with a fixed number of characters per line, and then rearranging the columns of the resulting matrix according to the alphabetical order of a key. The rearranged columns are then read out one by one to obtain the ciphertext. The objective of the challenge is to complete the `column_permutation_encryption(text)` function in the given file, which takes a piece of text as input, performs column permutation encryption using the key `qiao` and the padding character `,`, and returns the ciphertext. If the input text is empty, `None` should be returned.

|
60 : 00

Click the virtual machine below to start practicing