Writer Edgar Allan Poe (1809–1849) is famous for his short stories of the mysterious and the macabre. His popular tale “The Gold-Bug,” published in 1843, is often cited as one of the best works of fiction that turn upon a secret message.
Poe had a longstanding interest in cryptology. When he became editor of Graham’s Lady’s and Gentleman’s Magazine in Philadelphia, he offered to solve cryptograms sent to him by readers and, while waiting for responses, wrote an essay about secret writing for the July 1841 issue of the magazine (see http://www.eapoe.org/works/essays/fwsw0741.htm).