[ create a new paste ] login | about

Link: http://codepad.org/q5pLZNo2    [ raw code | output | fork ]

ramandi - Python, pasted on Aug 12:
from string import maketrans

password=''

a='017c43a81ddb8b638fb3a32c51f4'
for i in range(0,181):
 a=a[-3:]+a[:-3]
 if a[0]=='e':
  a=a[0]+a[-16:]+a[1:-16]
 if a[0]=='c':
  a=a[0]+a[-5:]+a[1:-5]
 if a[0]=='a':
  a=a[0]+a[-11:]+a[1:-11]
 if a[0]=='8':
  a=a[0]+a[-9:]+a[1:-9]
 if a[0]=='6':
  a=a[0]+a[-10:]+a[1:-10]
 if a[0]=='4':
  a=a[0]+a[-2:]+a[1:-2]
 if a[0]=='2':
  a=a[0]+a[-7:]+a[1:-7]
 if a[0]=='1':
  a=a[0]+a[-8:]+a[1:-8]
 if a[0]=='0':
  a=a[0]+a[-3:]+a[1:-3]
 d=0
 while d<len(a):
  c1=int(a[d],16)
  c2=int(a[d+1],16)
  if c1>=c2:
   a=a[:d]+hex(c1-c2)[2:]+a[d+1:]
  else:
   a=a[:d]+hex(c1+0x10-c2)[2:]+a[d+1:]
  d+=2
 trantab = maketrans('143c527e9ab0d6f8', '072b346d18a9f5ce')
 a=a.translate(trantab);
d=0
while d<len(a):
 discr=a[d+1]
 if discr=='0':
  password+=a[d]
 if discr=='1':
  trantab = maketrans('0123456789abcdef', 'abcdefghijklmnop')
  password+=a[d].translate(trantab);
 if discr=='2':
  trantab = maketrans('0123456789', 'qrstuvwxyz')
  password+=a[d].translate(trantab);
 if discr=='3':
  trantab = maketrans('0123456789abcdef', 'ABCDEFGHIJKLMNOP')
  password+=a[d].translate(trantab);
 if discr=='4':
  trantab = maketrans('0123456789', 'QRSTUVWXYZ')
  password+=a[d].translate(trantab);
 if discr=='5':
  password+='_'
 d+=2

print password


Output:
1
sTR3amt4cul0uS


Create a new paste based on this one


Comments: