A substitution cipher is a form of cryptography .
There are a number of different types of substitution cipher .