genericize secret key