repeat key xor + bit-wise edit distance