I need to make sure that the features described are applicable to a legitimate key management system rather than enabling piracy. So the keygen here would be part of a software distribution system, perhaps for an enterprise, where they generate unique keys for their products without violating any laws.