Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > df754e4e6f7f5fc8ab9d6ed8559f3e3d > files > 43

bacula-docs-5.0.3-19.fc16.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Command Line Message Digest Utility </TITLE>
<META NAME="description" CONTENT="Command Line Message Digest Utility ">
<META NAME="keywords" CONTENT="developers">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="developers.css">

<LINK REL="next" HREF="Download_md5_ziphttp_www_fo.html">
<LINK REL="previous" HREF="Bacula_MD5_Algorithm.html">
<LINK REL="up" HREF="Bacula_MD5_Algorithm.html">
<LINK REL="next" HREF="Download_md5_ziphttp_www_fo.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1565"
  HREF="Download_md5_ziphttp_www_fo.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1559"
  HREF="Bacula_MD5_Algorithm.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1553"
  HREF="Bacula_MD5_Algorithm.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1561"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1563"
  HREF="GNU_Free_Documentation_Lice.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1566"
  HREF="Download_md5_ziphttp_www_fo.html">Download md5.ziphttp://www.fourmilab.ch/md5/md5.zip (Zipped archive)</A>
<B> Up:</B> <A NAME="tex2html1560"
  HREF="Bacula_MD5_Algorithm.html">Bacula MD5 Algorithm</A>
<B> Previous:</B> <A NAME="tex2html1554"
  HREF="Bacula_MD5_Algorithm.html">Bacula MD5 Algorithm</A>
 &nbsp; <B>  <A NAME="tex2html1562"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1564"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html1567"
  HREF="Command_Line_Message_Digest.html#SECTION001611000000000000000">Name</A>
<LI><A NAME="tex2html1568"
  HREF="Command_Line_Message_Digest.html#SECTION001612000000000000000">Synopsis</A>
<LI><A NAME="tex2html1569"
  HREF="Command_Line_Message_Digest.html#SECTION001613000000000000000">Description</A>
<LI><A NAME="tex2html1570"
  HREF="Command_Line_Message_Digest.html#SECTION001614000000000000000">Options</A>
<LI><A NAME="tex2html1571"
  HREF="Command_Line_Message_Digest.html#SECTION001615000000000000000">Files</A>
<LI><A NAME="tex2html1572"
  HREF="Command_Line_Message_Digest.html#SECTION001616000000000000000">Bugs</A>
</UL>
<!--End of Table of Child-Links-->
<HR>

<H1><A NAME="SECTION001610000000000000000"></A>
<A NAME="5690"></A>
<A NAME="5691"></A>
<BR>
Command Line Message Digest Utility 
</H1>

<P>
This page describes <B>md5</B>, a command line utility usable on either Unix or
MS-DOS/Windows, which generates and verifies message digests (digital
signatures) using the MD5 algorithm. This program can be useful when
developing shell scripts or Perl programs for software installation, file
comparison, and detection of file corruption and tampering. 

<P>

<H2><A NAME="SECTION001611000000000000000"></A>
<A NAME="5697"></A>
<BR>
Name
</H2>

<P>
<B>md5</B> - generate / check MD5 message digest 

<P>

<H2><A NAME="SECTION001612000000000000000"></A>
<A NAME="5703"></A>
<BR>
Synopsis
</H2>

<P>
<B>md5</B> [ <B>-c</B><I>signature</I> ] [ <B>-u</B> ] [ <B>-d</B><I>input_text</I>
| <I>infile</I> ] [ <I>outfile</I> ] 

<P>

<H2><A NAME="SECTION001613000000000000000"></A>
<A NAME="5716"></A>
<BR>
Description
</H2>

<P>
A <I>message digest</I> is a compact digital signature for an arbitrarily long
stream of binary data. An ideal message digest algorithm would never generate
the same signature for two different sets of input, but achieving such
theoretical perfection would require a message digest as long as the input
file. Practical message digest algorithms compromise in favour of a digital
signature of modest size created with an algorithm designed to make
preparation of input text with a given signature computationally infeasible.
Message digest algorithms have much in common with techniques used in
encryption, but to a different end; verification that data have not been
altered since the signature was published. 

<P>
Many older programs requiring digital signatures employed 16 or 32 bit <I>cyclical redundancy codes</I> (CRC) originally developed to verify correct
transmission in data communication protocols, but these short codes, while
adequate to detect the kind of transmission errors for which they were
intended, are insufficiently secure for applications such as electronic
commerce and verification of security related software distributions. 

<P>
The most commonly used present-day message digest algorithm is the 128 bit MD5
algorithm, developed by Ron Rivest of the 
MIThttp://web.mit.edu/ 
Laboratory for Computer Sciencehttp://www.lcs.mit.edu/ and 
RSA Data Security, Inc.http://www.rsa.com/ The algorithm, with a
reference implementation, was published as Internet 
RFC 1321http://www.fourmilab.ch/md5/rfc1321.html in April 1992, and
was placed into the public domain at that time. Message digest algorithms such
as MD5 are not deemed ``encryption technology'' and are not subject to the
export controls some governments impose on other data security products.
(Obviously, the responsibility for obeying the laws in the jurisdiction in
which you reside is entirely your own, but many common Web and Mail utilities
use MD5, and I am unaware of any restrictions on their distribution and use.) 

<P>
The MD5 algorithm has been implemented in numerous computer languages
including C, 
Perlhttp://www.perl.org/, and 
Javahttp://www.javasoft.com/; if you're writing a program in such a
language, track down a suitable subroutine and incorporate it into your
program. The program described on this page is a <I>command line</I>
implementation of MD5, intended for use in shell scripts and Perl programs (it
is much faster than computing an MD5 signature directly in Perl). This <B>md5</B> program was originally developed as part of a suite of tools intended to
monitor large collections of files (for example, the contents of a Web site)
to detect corruption of files and inadvertent (or perhaps malicious) changes.
That task is now best accomplished with more comprehensive packages such as 
Tripwireftp://coast.cs.purdue.edu/pub/COAST/Tripwire/, but the
command line <B>md5</B> component continues to prove useful for verifying
correct delivery and installation of software packages, comparing the contents
of two different systems, and checking for changes in specific files. 

<P>

<H2><A NAME="SECTION001614000000000000000"></A>
<A NAME="5740"></A>
<BR>
Options
</H2>

<P>
<DL>
<DT><STRONG><B>-c</B><I>signature</I>  </STRONG></DT>
<DD><A NAME="5747"></A>
   Computes the signature of the specified <I>infile</I> or the string  supplied
by the <B>-d</B> option and compares it against the specified  <I>signature</I>.
If the two signatures match, the exit status will be zero,  otherwise the exit
status will be 1. No signature is written to  <I>outfile</I> or standard
output; only the exit status is set. The  signature to be checked must be
specified as 32 hexadecimal digits.  

<P>
</DD>
<DT><STRONG><B>-d</B><I>input_text</I>  </STRONG></DT>
<DD><A NAME="5754"></A>
   A signature is computed for the given <I>input_text</I> (which must be  quoted
if it contains white space characters) instead of input from  <I>infile</I> or
standard input. If input is specified with the <B>-d</B>  option, no <I>infile</I> should be specified.  

<P>
</DD>
<DT><STRONG><B>-u</B>  </STRONG></DT>
<DD>Print how-to-call information. 
   
</DD>
</DL>

<P>

<H2><A NAME="SECTION001615000000000000000"></A>
<A NAME="5762"></A>
<BR>
Files
</H2>

<P>
If no <I>infile</I> or <B>-d</B> option is specified or <I>infile</I> is a single
``-'', <B>md5</B> reads from standard input; if no <I>outfile</I> is given, or
<I>outfile</I> is a single ``-'', output is sent to standard output. Input and
output are processed strictly serially; consequently <B>md5</B> may be used in
pipelines. 

<P>

<H2><A NAME="SECTION001616000000000000000"></A>
<A NAME="5774"></A>
<BR>
Bugs
</H2>

<P>
The mechanism used to set standard input to binary mode may be specific to
Microsoft C; if you rebuild the DOS/Windows version of the program from source
using another compiler, be sure to verify binary files work properly when read
via redirection or a pipe. 

<P>
This program has not been tested on a machine on which <TT>int</TT> and/or <TT>long</TT> are longer than 32 bits. 

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1565"
  HREF="Download_md5_ziphttp_www_fo.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1559"
  HREF="Bacula_MD5_Algorithm.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1553"
  HREF="Bacula_MD5_Algorithm.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1561"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1563"
  HREF="GNU_Free_Documentation_Lice.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1566"
  HREF="Download_md5_ziphttp_www_fo.html">Download md5.ziphttp://www.fourmilab.ch/md5/md5.zip (Zipped archive)</A>
<B> Up:</B> <A NAME="tex2html1560"
  HREF="Bacula_MD5_Algorithm.html">Bacula MD5 Algorithm</A>
<B> Previous:</B> <A NAME="tex2html1554"
  HREF="Bacula_MD5_Algorithm.html">Bacula MD5 Algorithm</A>
 &nbsp; <B>  <A NAME="tex2html1562"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1564"
  HREF="GNU_Free_Documentation_Lice.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

2012-01-24
</ADDRESS>
</BODY>
</HTML>