Skip to content

Commit

Permalink
Init k[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Færevaag committed Jun 22, 2013
1 parent 9efd60d commit 9cd43ad
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions project3/breaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,26 @@
TIMEINT_START = 1245646800
TIMEINT_END = 1246251599

a = 69.069
c = 5
m = 2**32

def f:


def update(s):
return (a * s + c) % m

def main:
#

def main():
# Init s as s_0
s = TIMEINT_START

key = []
for i in xrange(0, 15):
s = update(s)
key.append(float.hex(s)[-6:-4])

print key


if __name__ == '__main__':
main
main()

0 comments on commit 9cd43ad

Please sign in to comment.