improved the constant time comparison to a more concise version, which calculates hamming distance of the strings and returns whether or not it is zero (non-zero means they were not equivalent)