Generates the sha256 digest for a given string.
The sha256 digest for the string, or null if it failed to create the digest.
The string.