Any comment on explosives would be a no-no in here but since your query regards camera flash it might be ok to mention very basically how they work.
A built in oscillator, thorugh a certain circuit, charges the cap to a predetermined high voltage dc.
One can actually hear the oscillator running...