The sh2 module implements the SHA-256 algorithm.
include ffl/sh2.fs \ Create a SHA-256 variable sh1 in the dictionary sh2-create sh1 \ Update the variable with data s" The quick brown fox jumps over the lazy dog" sh1 sh2-update \ Finish the SHA-256 calculation resulting in 8 unsigned 32 bit words \ on the stack representing the hash value sh1 sh2-finish \ Convert the hash value to a hex string and print sh2+to-string type cr \ Create a SHA-256 variable on the heap sh2-new value sh2 \ Update the variable with multiple data s" The quick brown fox " sh2 sh2-update s" jumps over the lazy dog" sh2 sh2-update \ Finish the calculation sh2 sh2-finish \ Convert the hash value to a hex string and print sh2+to-string type cr \ Free the variable from the heap sh2 sh2-free