The original was sent to Mary in London, who decrypted the code using a book that Holmes had noticed in Moriarty's office during their first meeting, before passing the information to Inspector Lestrade, who seizes Moriarty's assets and donates his fortune to anti-war charities.
The original was sent to Mary in London. London decrypted the code. Holmes had noticed in Moriarty's office during their first meeting. This was before. Holmes was passing the information to Inspector Lestrade. This code was using a book this. Inspector Lestrade seizes Moriarty's assets. Inspector Lestrade donates his fortune to anti-war charities.