Skip to content

Instantly share code, notes, and snippets.

@quend
Created September 14, 2015 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quend/bdaeb426a744117ba904 to your computer and use it in GitHub Desktop.
Save quend/bdaeb426a744117ba904 to your computer and use it in GitHub Desktop.
from rounds import round_map
from prime_index_map import prime_map
import struct
import binascii
out = ""
for lround in round_map:
i = 0
val = 1
while i < len(lround):
n = lround[i]
if n > 0:
val *= prime_map[i] ** n
i += 1
out += struct.pack(">H", val)
print out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment