I think we made something like this in college. We made stuff with iodide, when wet it was OK, but when dry it was a contact explosive. We'd put it in people's locks to scare them when they inserted keys, and dribble it on the floor so kids in the morning would step on it.
Nobody really hurt, but obviously not a good thing to be doing I suppose. We never blew anything up with it. I can't remember what we made, or how we made it. We had a guy in our group that had all the knowledge and I think probably he did most of the work. He was also really good at picking locks and got us into some places were weren't supposed to be.
You made what is usually called 'nitrogen triiodide'. It's easy to make, though obviously I'm not going to provide a recipe. :-)