The present invention provides a gas generator for health use having a security system, comprising: an electrolysis tank for containing electrolyzed water, wherein the electrolysis tank further comprises a power supply for electrolyzing the electrolyzed water to generating a gas mixture including hydrogen and oxygen; and a water bucket, coupled to the electrolysis tank. The security system comprises a sensor, electrically connected to the power supply, used to control the switch of the power supply, wherein the sensor is selected from a group consisting of a water level sensor configured in the water bucket, a gas leakage sensor configured in the gas generator for health use, a temperature sensor configured in the water bucket, a temperature sensor configured in the electrolysis tank, a temperature sensor configured in the power supply, and a combination thereof.