sha256()

Calculates the SHA-256 hash of a given string and returns it in hexadecimal format.

Syntax

sha256({input_string})

Parameters

Parameter Type Description Comment
input_string String The string for which the SHA-256 hash will be calculated.

Return Value

Examples

Calculate the SHA-256 hash for the string “HelloWorld”

sha256("HelloWorld"); // returns the SHA-256 hash in hexadecimal format

See also

crc16
crc32
sha256
sha256_f
md5
md5_f