470 reputation
21
bio website penguincoder.com
location United States
age
visits member for 2 years, 6 months
seen Nov 13 '12 at 16:20

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.

This user has not answered any questions
This user has not participated in any tags
This user has not asked any questions

0 Votes Cast

This user has not cast any votes