the current impl of the encryption tester is done in java, which has issue being compiled on customers computers, create similar logic in python