Posted: Mon Nov 10, 2008 4:52 pm Post subject: File character replacement not working.
I'm using a simple python method that reads from an input text file, does frequency analysis, and replaces the character with the associated most-frequent character. Not 100% perfect, but it should suit my purposes just fine.
The frequency analysis part works just peachy, as does the transposition of the keys. However, for some reason the replace script is not working. Crypt is printed at the end in its original unaltered state. I'm not sure why. Any input would be greatly appreciated.