modified keygenerator and base64check.py