"AI Overview" blithely tells me HOCL can be easily made from the electrolysis of salt water.
Looking even a little deeper (Wikipedia) confirms that chlorine chemistry, especially when combined with electrolysis, is very complex, and it's hard to know if you're making the right thing. FWIW every sensible electrolysis-based DIY project has dire warnings about electrolysing solutions of common salt.