possibly since table salt is iodized.. theres an easier way to do it. my friend and i did it with an electrical outlet, two copper wires attached to it, a DC charger, and a cup full of water. to contain it youll have to use some bottle.
Also,zinc or aluminum in hydrochloric acid produces hydrogen. to capture that use a two hole stopper in an erlen meyer flask. one hole that has a tube in it connected to the end of a small funnel that is over the small container. and the other hole open. hydrogen should stay in the erlenmeyer. somebody point out some error if you see it.
the erlenmeyer would have to be inverted tho.