Forget the anarchist's cookbook. The army has a few excellent manuals on improvised munitions and incendiary devices. You can usually find someone selling a copy at local gun shows.
Don't mess with primary explosives though. They're either too difficult to manufacture cleanly in an amateur setting or too unstable to be made by anyone who isn't a complete moron.
I think the Army's "Improvised Munitions Handbook" is better/safer - for educational purposes only of course... :-)
https://www.amazon.com/U-S-Army-Improvised-Munitions-Handboo...