A code used by Civil War lieutenant was deciphered, more than 150 years later. Jim Gandy, assistant librarian at the New York State Military Museum, holds the diary of Confederate officer James M.