Moving genPublicKey and encryting the licenses to license.