Goshikimai Cipher using rice grains dyed in five colors.

The ninja used rice grains dyed blue, yellow, red, black, and purple to create a cipher by their combinations.

Ciphers could be arranged each time when the need arose, like baseball signals. A blue grain could be “a” and a yellow one “b.”