I did a lot of unsafe things growing up; it is a miracle I still have all my fingers and both eyes actually.
The stuff they put in firecrackers is quite a bit different from blackpowder. I'm not a chemist but it is usually a chlorate compound (oxidizer) and a fuel (finely powdered aluminum.) It burns many times faster than 4f black powder and produces maximum pressure almost instantaneously, so it is essentially a detonation rather than a burning. I've heard many names for this explosive compound, including pyro powder and flashpowder. Noisy "firecrackers" did not exist until this stuff was invented sometime, I'm guessing, around 1900. Before that, if you wanted to make a big bang, you used a cannon or thunder mug.