Proposal on https://forum.xwiki.org/t/automatically-generate-validationkey-and-encryptionkey-when-they-are-not-set/13355.