Compare the SHA256 of the two strings.

Cleans up the code a bit. By taking the SHA we ensure that comparison
happens between two strings of the same length.