#!/usr/bin/env python3
import sys
import re
from hashlib import sha1
from base64 import b64encode
PART_1_INDEXES = [23, 14, 6, 36, 16, 40, 7, 19]
PART_2_INDEXES = [16, 1, 32, 12, 19, 27, 8, 5]
SCRAMBLE_VALUES = [89, 39, 179, 150, 218, 82, 58, 252, 177,
52, 186, 123, 120, 64, 242, 133, 143, 161, 121, 179]
# Jav...