Kashin Koji (果心居士), also called Shippo Gyoja (七宝行者, Pilgrim of the Seven Treasures), is a Japanese folkloric/legendary character of a late Muromachi period magician.
There are stories of him performing magic before Nobunaga Oda, Hideyoshi Toyotomi, Mitsuhide Akechi, Hisahide Matsunaga, and others, but his historicity is questioned.
Although he was initially a Buddhist priest at the Kōfuku-ji Temple in Yamato Province (or on Mount Kōya[2]), due to his prowess in non-Buddhist magic, he was exiled.
[6] In another version of Koji Kashin's disappearance, in June of 1584 he was called upon by Hideyoshi Toyotomi, and enraged the daimyo by exposing his never-told-anyone secret.
[1] Despite the historicity of Koji being questioned, he often appears in modern fantasy stories, as a hermit who waded through the troubled times of the Sengoku period, or a mysterious person like ninja.