1SHA(1)                      General Commands Manual                     SHA(1)
2
3
4

NAME

6       sha - file hashing utility
7

SYNOPSIS

9       sha [-12345Vh] [file ...]
10

DESCRIPTION

12       sha  is a simple program that hashes files. It uses the National Instiā€
13       tute of Standards and Technology's Secure Hash Algorithm.  It  can  use
14       SHA-1,  SHA-256,  SHA-384,  or  SHA-512,  which  generate respectively,
15       hashes of 160, 256, 384, or 512 bits.  sha can be used  in  scripts  to
16       do, for example, file integrity checking.
17

OPTIONS

19       -1     Use SHA-1, which produces a 160-bit hash (40 hex digits).
20
21       -2     Use SHA-256, which produces a 256-bit hash (64 hex digits).
22
23       -3     Use SHA-384, which produces a 384-bit hash (96 hex digits).
24
25       -5     Use SHA-512, which produces a 512-bit hash (128 hex digits).
26
27       -V     Display version information.
28
29       -h     Display help summary.
30
31       file ...
32              One  or  more  files  to  hash.  If no files are given, stdin is
33              hashed.
34
35       If neither -1, -2, -3, or -5 are given, then SHA-1 is  used.  (But  see
36       note about SHA_DEFAULT below.)
37

ENVIRONMENT

39       SHA_DEFAULT
40              The  default  hash  algorithm to use. ``1'' denotes SHA-1, ``2''
41              denotes  SHA-256,  ``3''  denotes  SHA-384,  and  ``5''  denotes
42              SHA-512.  Only  the  first  character  is  significant.  If  not
43              defined, SHA-1 is the default.
44
45
46
47                                August 19, 2001                         SHA(1)
Impressum