string getHashString(string $string)

$string - the string to get the SHA-2 SHA-256 hash value (digest) of (it is first converted to UTF-8)

This function is supported by CSS HTML Validator v18.0122 and later.