Use constant time string comparison to avoid timing attacks.
Merge pull request #116 from philnash/secure-string-compare

Use constant time string comparison to avoid timing attacks.