configurable generated secret length