Basic keygen generator with encryption options.