SARATOGA SPRINGS, N.Y. (AP) — A century and a half after Confederate officer James Malbone wrote his Civil War diary partly in code, a couple of Yankees have figured out why he took the precaution: He liked to gossip. 
 
 Jim Gandy, assistant librarian at the New York State Military Museum, holds the diary of Confederate officer James M. Malbone on Thursday, Oct. 9, 2014, in Saratoga Springs, N.Y. A century and a half... (Associated Press) 
 
 The diary of Confederate officer James M. Malbone is displayed at the New York State Military Museum on Thursday, Oct. 9, 2014, in Saratoga Springs, N.Y. A century and a half after Malbone wrote his Civil... (Associated Press) 
 
 The diary of Confederate officer James M. Malbone is displayed at the New York State Military Museum on Thursday, Oct. 9, 2014, in Saratoga Springs, N.Y. A century and a half after Malbone wrote his Civil... (Associated Press) 
 
 Confederate officer James M. Malbone's diary shows coded entries at the New York State Military Museum on Thursday, Oct. 9, 2014, in Saratoga Springs, N.Y. A century and a half after Malbone wrote his... (Associated Press) 
 
 The diary of Confederate officer James M. Malbone is displayed at the New York State Military Museum on Thursday, Oct. 9, 2014, in Saratoga Springs, N.Y. A century and a half after Malbone wrote his Civil... (Associated Press) 
 
 Sprinkled amid entries on camp recipes and casualties are encrypted passages in which Malbone dishes on such juicy topics as a fellow soldier who got caught in bed with another man's wife. 
 
 Malbone also writes about meeting the wife of Confederate President Jefferson Davis and describes her looks in an apparent echo of rumors at the time that she may have been of mixed race. 
 
 "That's pretty shocking," said Kent D. Boklan, the Queens College computer science professor and former National Security Agency cryptographer who deciphered Malbone's code with little difficulty. "It's a military diary and you expect military information, but you don't expect the first lady of the Confederacy to make an appearance in this diary." 
 
 According to Boklan, Malbone's encrypted entry about Varina Howell Davis describes her as "dark complected" with "very very brown skin dark eyes" and "high cheek bones wide mouth." 
 
 Davis' wife was a well-educated woman for her time, and as a result, was the target of "all kind of gossipy innuendos from the ladies" in Richmond, Virginia, the Confederate capital, according to Sam Craghead of the Museum of the Confederacy in Richmond. 
 
 Malbone, a lieutenant with the 6th Virginia Infantry Regiment, was severely wounded in the arm at the Battle of Chancellorsville in 1863. Assigned to light duty behind the lines, he used a leather-bound pocket diary to jot down his thoughts and even a poem. 
 
 Many of the entries were in a code he devised himself, consisting of a variety of symbols, including punctuation marks and a dollar sign, that corresponded to letters of the alphabet. 
 
 Other entries — names of deserters, costs of supplies — were written in plain text because the diary would have been submitted to his superiors so they could copy the information for their official records, according to Jim Gandy, librarian at the New York State Military Museum. 
 
 Gandy said the journal probably came into the possession of a New York soldier at the end of the war and wound up in the state's vast collection. It is the only Confederate diary in the museum. There is no record there of Malbone's ultimate fate. 
 
 It wasn't until 2012 that a museum volunteer discovered the diary was written partly in code. The museum contacted Boklan, who had broken Union and Confederate codes used in other documents, and he completed the deciphering after working on it for a week in January. 
 
 "Technically, this is not very hard to break," Boklan said. "There were some odd things. With a little bit of work and patience everything worked out." 
 
 ___ 
 
 Online: 
 
 http://dmna.ny.gov/historic/reghist/civil/Malbone.htm 

 This collection contains web crawls performed as the post-inauguration crawl for part of the End of Term Web Archive, a collaborative project that aims to preserve the U.S. federal government web presence at each change of administration. Content includes publicly-accessible government websites hosted on .gov, .mil, and relevant non-.gov domains, as well as government social media materials. The web archiving was performed in the Winter of 2016 and Spring of 2017 to capture websites after the January 20, 2017 inauguration. For more information, see 
 
 . 

 This collection contains web crawls performed as the pre-inauguration crawl for part of the End of Term Web Archive, a collaborative project that aims to preserve the U.S. federal government web presence at each change of administration. Content includes publicly-accessible government websites hosted on .gov, .mil, and relevant non-.gov domains, as well as government social media materials. The web archiving was performed in the Fall and Winter of 2016 to capture websites prior to the January 20, 2017 inauguration. For more information, see http://eotarchive.cdlib.org/.
– A wounded Confederate officer found time for a little fun during the Civil War while working behind the lines—by gossiping in his diary, and in code no less. The diary of James Malbone, now at the New York State Military Museum, includes entries on the Confederacy's first lady and a soldier who slept with another guy's wife, the AP reports. "That's pretty shocking," says former NSA cryptographer Ken Boklan, who broke the simple code. "It's a military diary and you expect military information, but you don't expect the first lady of the Confederacy to make an appearance in this diary." Indeed, Malbone wrote about meeting Confederate President Jefferson Davis' wife, Varina Howell Davis, and rehashed rumors that she might have been of mixed race. Malbone describes Davis as "dark complected" with "high cheek bones wide mouth" and "very very brown skin dark eyes." His code involved various symbols, like a dollar sign and punctuation marks, that represented letters of the alphabet. But other matters, like supply costs and names of deserters, Malbone wrote about in regular text—no doubt because they would have been copied by others for official records. Malbone, of the 6th Virginia Infantry Regiment, wrote the entries after his arm was badly injured in the Battle of Chancellorsville in 1863. "Technically, this is not very hard to break," says Boklan. "With a little bit of work and patience everything worked out." See scans or a transcription of the diary, or read about a rare photo of a Robert E. Lee slave.