The definition of a cipher is the symbol 0 meaning zero, or a secret code, something written in code, or a key used to figure out the meaning of something written in code. 1  The symbol 0 entered on a form to show a zero quantity is an example of a cipher.