aQute.libg.cryptography
Class MD5

java.lang.Object
  extended by aQute.libg.cryptography.Digest
      extended by aQute.libg.cryptography.MD5

public class MD5
extends Digest


Field Summary
static String ALGORITHM
           
 
Constructor Summary
MD5(byte[] digest)
           
 
Method Summary
static MD5 digest(byte[] data)
           
static MD5 digest(File f)
           
static MD5 digest(InputStream f)
           
 String getAlgorithm()
           
static Digester<MD5> getDigester(OutputStream... out)
           
 
Methods inherited from class aQute.libg.cryptography.Digest
asHex, digest, equals, hashCode, toByteArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALGORITHM

public static final String ALGORITHM
See Also:
Constant Field Values
Constructor Detail

MD5

public MD5(byte[] digest)
Method Detail

getDigester

public static Digester<MD5> getDigester(OutputStream... out)
                                 throws Exception
Throws:
Exception

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in class Digest

digest

public static MD5 digest(byte[] data)
                  throws Exception
Throws:
Exception

digest

public static MD5 digest(File f)
                  throws NoSuchAlgorithmException,
                         Exception
Throws:
NoSuchAlgorithmException
Exception

digest

public static MD5 digest(InputStream f)
                  throws NoSuchAlgorithmException,
                         Exception
Throws:
NoSuchAlgorithmException
Exception


Copyright © 2014 aQute SARL. All rights reserved.