The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography
And The Code Book: The Secrets Behind Codebreaking
Guessing the second one has more to do with Bletchley Park
It looks like the second one is the young adult adaptation of the first one.