Courtasy of [profile] sorcererkoi

May. 2nd, 2007 02:24 pm
inaki: (tp helmet)
[personal profile] inaki
#!/usr/bin/python
from string import atoi
factor = [3,84,6,3,54,39,76,30,72,22,29,66,33,30,46,64]
prime = 3
modi = 2267936436503
final = ""

modi = "0"+str(modi * 140)

for i in range(16):
        factor[i] = (factor[i]*prime) - atoi(modi[i])
        if i == 7:
                factor[i] = factor[i]+2
        final = final+("%02X" % factor[i])+"-"

print final[0:-1]
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

inaki: (Default)
Inaki

August 2011

S M T W T F S
 123456
7891011 1213
14151617181920
21222324252627
28293031   

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 3rd, 2026 12:38 am
Powered by Dreamwidth Studios