470 reputation
312
bio website penguincoder.com
location United States
age
visits member for 2 years, 8 months
seen 6 hours ago

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.

16
× 5
6
× 6
11
× 2
3
11
3
11
3
11
2
× 2
Stack Overflow 2,387 rep 833
Super User 470 rep 312
Server Fault 308 rep 415
Meta Stack Exchange 234 rep 15
Network Engineering 153 rep 18

72 Votes Cast

all time   by type  
64 up 16 question
8 down 56 answer