307 reputation
415
bio website penguincoder.com
location United States
age
visits member for 3 years
seen yesterday

You want to know a bit about me?? Run the following code; or not.

from random import shuffle

alphabet="abcdefghijklmnopqrstuvwxyz+!@#$%^&*"
key="&frs^!yo+j*xduieqbgntzvwha%$#mck@lp"

class cipherText:

    @staticmethod
    def encode(key,plaintext):

        randarray=range(0,len(key))
        shuffle(randarray)

        dic={}

        for i in range(0,len(key)):
            dic[key[i]]=alphabet[i]


        ciphertext=""

        for l in plaintext:
            if l in dic.values():
                l=dic[l]
            ciphertext+=l


        return ciphertext,key

    @staticmethod   
    def decode(key,ciphertext,alphabet):
        dic={}
        for i in range(0,len(alphabet)):
            dic[alphabet[i]]=key[i]

        plaintext=""


        for l in ciphertext:
            if l in dic.keys():
                l=dic[l]
            plaintext+=l

        return plaintext


if __name__=="__main__":
    users = {}
    for i in range(1,9999999):
        users["user%s"%(i)] = "I am a programmer. I like to code.... just .. like.. everyone one HERE etc etc"


        if i == 1209423:
            print cipherText.decode(key,"Tyod od duz$%hwpcb&hx. Ewpcghtp xyh yzd z *chbo&p ypcp, "\
            "&o%p&g '&hwpd' uh $hmp ztm uypcpbhcp *nuuots dn$y z duzup#ptu ot z 'roh' od cpz&&g nttpddp$zcgf "\
            "Ppcdhtz&&g, I'# thu z scpzu *chscz##pc rnu I ptjhg z shhm $yz&&ptsp ztm I &hwp &pzctots tpx #puyhmd "\
            "xyo&p *chscz##ots. I z# z dp&b uznsyu Pguyht, PHP, ztm Cii *chscz##pc, z&uyhnsy #hdu hb #g $hmots "\
            "$yh*d &op ot PHP xpr mpwp&h*#ptu.Suo&& ot #g &pzctots duzsp, ztm z&xzgd xo&&ots uh &pzct #hcp. I &hwp "\
            "uyp Pguyhto$ xzg hb $hmots ztm z# yh*ots uh rp$h#p #hcp *chbo$optu ot dn$y #puyhmh&hsg uychnsy *cz$uo$p "\
            "ztm &pzctots ht Suz$% Owpcb&hx.Mhdu hb z&&, I z# z GNU/Lotnl mopyzcm, z Pptsnot xouy z *zddoht ztm *pt$yptu "\
            "bhc *chscz##ots.",alphabet)

            break #The mold. Send an email to know more, or if to just correct my coding.

307 Reputation

This user has no recent positive reputation changes
Stack Overflow 2,417 rep 1033
Super User 505 rep 313
Server Fault 307 rep 415
Meta Stack Exchange 234 rep 15
Network Engineering 153 rep 119

47 Votes Cast

all time   by type  
44 up 9 question
3 down 38 answer