Security through obscurity isn't what is at play with nuclear weapons. It's a fabrication and chemistry nightmare at every single level; the effort and materials is what prevents these kind of things from happening -- the knowledge and research needed has been essentially available since the 50s-60s like others have said.
It's more like 'security through scarcity and trade control.'