something with random.randrange(52) mapped to UCase/LCase letters or similar. ############################## import sys import re import csv import string # Better ROT13 from James Bennett of Django fame: # http://www.evanfosmark.com/2009/01/rot13-in-python-30/ # Of course, they are talking about 3.0, so we have to use string.* rot13_trans = string.maketrans('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 'NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm') def rot13(text): return text.translate(rot13_trans)