Scientist develops uncrackable code for weapons