| bio | website | penguincoder.com |
|---|---|---|
| location | United States | |
| age | ||
| visits | member for | 1 year, 3 months |
| seen | Feb 14 at 14:28 | |
| stats | profile views | 1 |
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 asked any questions
|
|
Stack Overflow | 1,903 rep | 626 |
|
|
Super User | 432 rep | 19 |
|
|
Server Fault | 293 rep | 212 |
|
|
Meta Stack Overflow | 224 rep | 14 |
|
|
Programmers | 131 rep | 2 |
2 Votes Cast
| all time | by type | ||||
|---|---|---|---|---|---|
| 2 | up | 1 | question | ||
| 0 | down | 1 | answer | ||