Como criar um arquivo de hash usando SHA256 Soma e salvá -lo em um arquivo

shasum -a file.txt > file.txt.sha256

#To verify
shasum -c file.txt.sha256

#To output the file content
cat file.txt.sha256
Chris Nzoka-okoye