Shonosuke Furukehashi (Hiroshi Tamaki) is a young samurai and the second son of Sozaemon (Bunchin Katsura) of Togane Domain, Kazusa Province. Sozaemon serves as an attendant, but one day, he is suddenly suspected of accepting bribes. Forged documents written in handwriting startlingly identical to his offer incontrovertible evidence. Framed for accepting bribes he knows nothing about, Sozaemon commits ritual suicide for his “crime”. Shonosuke’s elder brother Katsunosuke (Satoshi Hashimoto), an assistant instructor at the domain’s training hall, is placed under house arrest. Because of that, Shonosuke leaves for Edo alone in order to clear the name of his beloved father.
Based on the real life story of legendary cryptanalyst Alan Turing, the film portrays the nail-biting race against time by Turing and his brilliant team of code-breakers at Britain's top-secret Government Code and Cypher School at Bletchley Park, during the darkest days of World War II.
When the magic powers of The Tablet of Ahkmenrah begin to die out, Larry Daley (Ben Stiller) spans the globe, uniting favorite and new characters while embarking on an epic quest to save the magic before it is gone forever.