Experts in code writing and breaking tell tales of heroic risks and cat-and-mouse secrecy, where science meets deadly adventure and everyone from queens to soldiers to everyday citizens can pay the price.