Work on knapsack keygen