AI models from OpenAI and Anthropic have been used to solve encryption mysteries that have baffled humans for decades and even centuries.