We present density functional theory calculations of the nuclear magnetic resonance spectroscopy of molecules encapsulated within single walled carbon nanotubes. Ring currents in the nanotube induce shifts in the chemical shift of the nuclei comprising the encapsulated molecule. These changes in the chemical shifts are shown to have characteristic dependence on the chirality of the surrounding nanotubes. (c) 2008 American Institute of Physics.