The concept:

Using Python, I wrote a program that takes in any text, iterate through the words, and replace the words with words from the 2,151,220 unique passwords according to this list

The selection of the substituted word is made by first collecting the passwords that contain the original word, and then randomly picking one of the returned matches. For example, if the original word was Salem, then the matches in the passwords file are OldSalem, AbuSalem, Salemm, and all other passwords that contain the words Salem. The program then selects any of the returned words randomly, and substitutes the original word with it.

The randomization allows for different outputs every time you run the same text.

Punctuation, and common words (e.g. I, you, is, are, etc) are preserved in the text, and so is capitalisation in words.

In a further refinement of the program, I made the program remove any numbers included within the password strings, therefore results such as tobe123 will return as tobe.

The output:

The below are examples of the output of the program with various poem verses were passed into it.

Screen Shot 2014-02-20 at 1.39.09 AM

Screen Shot 2014-02-20 at 1.42.17 AM


The code:

Leave a Comment

Error: Please check your entries!