Fixes #4114: Added Security::generateRandomHexKey(), used it for various tokens and default key generation