plan to run keygen on separate threads so form doesn't freeze for large bitlengths