the Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different.
The Hamming distance between two strings or vectors (of equal length) is the number of positions in which the two differ. It is a true distance (it is symmetric, definite, and satisfies the triangle inequality). This distance originates, and frequently is used in, information theory, coding theory, and cryptography.