transposition cipher Algorithm

In cryptanalysis, a transposition cipher is a method of encryption by which the positions hold by units of plaintext (which are normally characters or groups of characters) are shifted according to a regular system, so that the ciphertext constitutes a permutation of the plaintext. mathematically a bijective function is used on the characters' positions to cipher and an inverse function to decrypt.

transposition cipher source code, pseudocode and analysis