In the US, classified information only legally binds people with security clearances, and people who are complicit/conspire with them to violate them. But otherwise, you can publish it. There is one legally untested exception, which is nuclear-related restricted data.