Signature
String sha256(String data)
Parameters
data : bytes to hash
return value : the raw 32-byte SHA-256 digest
Returns the SHA-256 digest of data as raw bytes. Prefer sha256_hex() when you need printable text; use the raw form when feeding the digest into other binary operations.
Example
print(sha256("abc").length(), " raw bytes, hex = ", sha256_hex("abc"), "\n");
Output
32 raw bytes, hex = ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad