There was a secret deciphering office in London, a successor to the Post Office's foreign letter office, and another code-breaking unit in the Admiralty, both of which cracked Napoleon's codes, as did the bureau noir attached to every European government (though the Austrians reckoned their best intelligence came from the emperor's pillow talk).
ECONOMIST: Napoleon and Wellington