Bleach is OK if you're filling a perfectly clean container to the top, and not opening until you are to use. If you let germs in, you have to start over with fresh bleach, because it expires. BLEACH EXPIRES, but if the water is clean when sealed, it's still clean when opened.
Some forms of chlorine can be dangerous to store.
I believe what you saw was Sodium dichloroisocyanurate granules, if you are looking for ongoing purification.