Java: Keygen source code