Expose method to generate secret for scenarios where
it must be saved into the key store