What is the origin of the phrase hanky panky?

It is believed to have derived from Hocus-Pocus, a meaningless Latin-sounding phrase used by conjurers.