Implemented SECRET_KEY generation as a separate file.