Sha256Sum
Name
Sha256Sum
Synopsis
FILE/M,TEXT/K,QUIET/S
Location
C:
Function
Prints the SHA-256 digest (FIPS 180-4) of each file, of standard input
when no file is given, or of the text given with TEXT. A line is the
digest in lowercase hex, two spaces and the name, as GNU sha256sum
prints it ("-" for standard input), so the output can be compared
with that of other systems.
Inputs
FILE -- The files to read. "-" is standard input.
TEXT -- A string to take as the data instead: its characters as they
are, with no newline added (for example a password, see
below). The name printed is "-".
QUIET -- Print only the digest, with no name.
Result
RETURN_OK, or RETURN_ERROR when a file could not be read (its line is left out and the others are printed).
Example
Sha256Sum SYS:C/List
b0e1...4f2a SYS:C/List
Sha256Sum TEXT "mypassword" QUIET >ENVARC:SSH/password
sets the password of sshd, which keeps the SHA-256 digest of the
password in that file.
Notes
TEXT puts the string on the command line, where the shell may keep it in its history.


