Welcome Guest [Log In] [Register]
Viewing Single Post From: Transposition Cipher Cracker (c++)
Revelation
Member Avatar
Administrator
[ *  *  *  *  * ]
Quote:
 
I've always found using pointer arithmetic that way to be confusing - easy to get wrong, and hard to tell when you had.

It is, that's why I wrote down the algorithm, so I will never forget it.

Quote:
 
There's no question, though, that it's hugely faster than reordering the characters.

It is very fast :) Keylengths below 11 take 3 seconds to be cracked. The hardcoded ciphertext with keylength 11 takes 40 seconds to be cracked.

I think a great timesaver in my code is the d array, which counts the rest of irregular columnar transpositions depending on the current permutation.
RRRREJMEEEEEPVKLWENFNVJKEEEEEAOLKAFKLXCFZAASDJXZTTTTTTTLSIOWJXMOKLAFJNNKFNXN
RAGRBAQEMHIGDJVDSEOXVIYCELFHWLELJFIENXLRATALSJFSLCYTKLASJDKMHGOVOKAJDNMNUITN
RRRRLJVEEEEECLYVYHNVPFTAEEEEEMWLMEIRNGLARWJAKJDFLWNTIERJMIPQWOTZEOCXKNUBNXCN
RJIRPOWEANFUSNCZVDVZNMSFEKLOEPZLDKDJWSAAAAAAAOERHJCTNCKFRIMVKSOFOMKMANREWNBN
RZUDRGXEEEEENFQIDVLQNCKNEEEEEDGLLLLLLAWIOSNCDARLODMTOEJXMILDFJROTKJSDNLVCZNN
Offline Profile Quote Post
Transposition Cipher Cracker (c++) · General