Back to Sway

sha256

docs/reference/src/documentation/operations/hashing/sha256.md

0.71.0405 B
Original Source

sha256

To use the sha256 function we must import it.

sway
{{#include ../../../code/operations/hashing/src/lib.sw:import_sha256}}

To hash multiple values we wrap them into a tuple however other compound types may be used.

sway
{{#include ../../../code/operations/hashing/src/lib.sw:sha256}}