Note to self: crackmes.one ignores formatting in comments...
Formatted code can be found here: https://pastebin.com/igMU6qmC |
==> |
Keygen:
def serial (username):
L = len(username)
prefix = 3 * (L 1) + L
checksum = (L * (L + 7)) // 2 + sum(map(ord, username))
# ^^^^^^^^^^^^^^^^^^ doesn't need to be calculated in sum
return f"{prefix}-{checksum}" |
==> |