A
download package.html
Language: NonCode
LOC: 0
Project Info
GNU Crypto(gnu-crypto)
Server: Savannah GNU
Type: cvs
...pto\source\gnu\crypto\hash\
   BaseHash.java
   HashFactory.java
   Haval.java
   IMessageDigest.java
   MD2.java
   MD4.java
   MD5.java
   package.html
   RipeMD128.java
   RipeMD160.java
   Sha160.java
   Sha256.java
   Sha384.java
   Sha512.java
   Tiger.java
   Whirlpool.java

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<!--

 $Id: package.html,v 1.5 2005/10/06 04:24:14 rsdio Exp $

 Copyright (C) 2003, Free Software Foundation, Inc.

 This file is part of GNU Crypto.

 GNU Crypto is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2, or (at your option)
 any later version.

 GNU Crypto is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; see the file COPYING.  If not, write to the

    Free Software Foundation Inc.,
    51 Franklin Street, Fifth Floor,
    Boston, MA 02110-1301
    USA

 Linking this library statically or dynamically with other modules is
 making a combined work based on this library.  Thus, the terms and
 conditions of the GNU General Public License cover the whole
 combination.

 As a special exception, the copyright holders of this library give
 you permission to link this library with independent modules to
 produce an executable, regardless of the license terms of these
 independent modules, and to copy and distribute the resulting
 executable under terms of your choice, provided that you also meet,
 for each linked independent module, the terms and conditions of the
 license of that module.  An independent module is a module which is
 not derived from or based on this library.  If you modify this
 library, you may extend this exception to your version of the
 library, but you are not obligated to do so.  If you do not wish to
 do so, delete this exception statement from your version.

-->
</head><body>

Provides a basic API for using message digest algorithms.


<h2>Package overview</h2>

<p>Message digests, or one-way hash functions, generate fixed-sized
signatures from variable-sized texts, in such a way that it is
computationally infeasible to determine the source text from the
signature or to find a different text that hashes to the same
signature.</p>

<p>The following diagram shows the important classes participating in this
package:</p>

<p><img src="{@docRoot}/../diagrams/hash_class_diag.png"
         width=362 height=271 border=0></p>

<p>Here is a simple example of how to use the SHA-1 <i>hash</i>.</p>

<pre>
IMessageDigest md = HashFactory.getInstance("SHA-1");
md.update(input, 0, input.length);
byte[] digest = md.digest();
</pre>
<!-- $Revision: 1.5 $ -->
</body></html>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us