For the transposition cipher in your implement, sometimes the ciphertext is the same as the plain text. For example, for ”sea”, it has possible to output ”sea” directly but we expect ”sae”. The length of the matrix may be longer than the length of the word.
This was a big problem of ours that seemed to stem from a global variable mishap. Transposition will occasionally work for some reason but not 100% of the time unfortunately.
For the transposition cipher in your implement, sometimes the ciphertext is the same as the plain text. For example, for ”sea”, it has possible to output ”sea” directly but we expect ”sae”. The length of the matrix may be longer than the length of the word.