Researchers are using machine learning algorithms to decrypt historical pencil-and-paper ciphers.