1DGST(1)                             OpenSSL                            DGST(1)
2
3
4

NAME

6       dgst, md5, md4, md2, sha1, sha, mdc2, ripemd160 - message digests
7

SYNOPSIS

9       openssl dgst [-md5⎪-md4⎪-md2⎪-sha1⎪-sha⎪-mdc2⎪-ripemd160⎪-dss1] [-c]
10       [-d] [-hex] [-binary] [-out filename] [-sign filename] [-passin arg]
11       [-verify filename] [-prverify filename] [-signature filename] [file...]
12
13       [md5⎪md4⎪md2⎪sha1⎪sha⎪mdc2⎪ripemd160] [-c] [-d] [file...]
14

DESCRIPTION

16       The digest functions output the message digest of a supplied file or
17       files in hexadecimal form. They can also be used for digital signing
18       and verification.
19

OPTIONS

21       -c  print out the digest in two digit groups separated by colons, only
22           relevant if hex format output is used.
23
24       -d  print out BIO debugging information.
25
26       -hex
27           digest is to be output as a hex dump. This is the default case for
28           a "normal" digest as opposed to a digital signature.
29
30       -binary
31           output the digest or signature in binary form.
32
33       -out filename
34           filename to output to, or standard output by default.
35
36       -sign filename
37           digitally sign the digest using the private key in "filename".
38
39       -passin arg
40           the private key password source. For more information about the
41           format of arg see the PASS PHRASE ARGUMENTS section in openssl(1).
42
43       -verify filename
44           verify the signature using the the public key in "filename".  The
45           output is either "Verification OK" or "Verification Failure".
46
47       -prverify filename
48           verify the signature using the  the private key in "filename".
49
50       -signature filename
51           the actual signature to verify.
52
53       -rand file(s)
54           a file or files containing random data used to seed the random num‐
55           ber generator, or an EGD socket (see RAND_egd(3)).  Multiple files
56           can be specified separated by a OS-dependent character.  The sepa‐
57           rator is ; for MS-Windows, , for OpenVMS, and : for all others.
58
59       file...
60           file or files to digest. If no files are specified then standard
61           input is used.
62

NOTES

64       The digest of choice for all new applications is SHA1. Other digests
65       are however still widely used.
66
67       If you wish to sign or verify data using the DSA algorithm then the
68       dss1 digest must be used.
69
70       A source of random numbers is required for certain signing algorithms,
71       in particular DSA.
72
73       The signing and verify options should only be used if a single file is
74       being signed or verified.
75
76
77
780.9.8b                            2004-12-03                           DGST(1)
Impressum