People have been making and breaking codes for many centuries. In the 1930s specialized machines were invented to do the calculations. Code-breaking machines such as the Colossus computer were important during World War II. Computers were the main tool of cryptanalysis in the Cold War and later.