use pubkey modulus for as communication key
use envvar to signal error (can't access XUL)
selftesting mode (not yet finished)
ba2int function
shorten os.path.join, base64, hashlib
selftesting mode (finished)