To create a keygen you have to understand the algorithm and write a program to re-do the exact same calculation (I remember an old version of. Caveat: you can't prevent users from pirating, but only make it easier for honest users to do the right thing. Assuming you don't want to do a.