Encryption Algorithm

Simredo's encryption algorithm is based on Columnar Encryption.

Suppose that the text to encrypt is 'This is my text.' and that the encryption key is 'my key'. The first step is to arrange the text in columns under the key.

The last row must be padded to complete it. Simredo uses new-line characters for padding (-).

my key

This i
s my t


i sThi
m ys t

The next step is to sort the key. 'my key' becomes ' ekmyy'. The columns under the key are also sorted in the same order.

The columns are now read out as rows. The encrypted text becomes:
'imt   -sy.Tseh xit-'

In order to obscure things further, Simredo inverts bits in each character using xor.