>>10896683Chloralkali process. Electrolysis of salt (NaCl) water makes hydrogen and chlorine gas which you can react together to make HCl.
>>10896881Chlorine and water make hypochlorous as well as hydrochloric acid and that mix tends to reform and release chlorine. If you want pure HCl and no chlorine release don't do it that way.