[ create a new paste ] login | about

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

ramandi - Python, pasted on Aug 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import math

password=''
meta='HackIt'

for g in range(1, len(meta)+1):
 cod=ord(meta[g-1])-32
 if g%3 ==1:
  aux2=int(30*math.asin(float(g)/len(meta)))
 if g%3 ==2:
  aux2=int(30*math.acos(float(g)/len(meta)))
 if g%3 ==0:
  aux2=int(30*math.atan(float(g)/len(meta)))
 caracter=cod + (((-1)**(g-1))*g) - aux2
 if caracter < 32:
  caracter+=95 # En principio es cod el que pasa por el modulo, pero bueno
 password+=chr(caracter)

print password


Output:
1
$z92|7


Create a new paste based on this one


Comments: