Generate secure secret key programmaticaly