Package aQute.libg.cryptography
Class MD5
- java.lang.Object
-
- aQute.libg.cryptography.Digest
-
- aQute.libg.cryptography.MD5
-
public class MD5 extends Digest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALGORITHM
-
Constructor Summary
Constructors Constructor Description MD5(byte[] digest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MD5
digest(byte[] data)
static MD5
digest(java.io.File f)
static MD5
digest(java.io.InputStream f)
java.lang.String
getAlgorithm()
static Digester<MD5>
getDigester(java.io.OutputStream... out)
-
-
-
Field Detail
-
ALGORITHM
public static final java.lang.String ALGORITHM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDigester
public static Digester<MD5> getDigester(java.io.OutputStream... out) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in classDigest
-
digest
public static MD5 digest(byte[] data) throws java.lang.Exception
- Throws:
java.lang.Exception
-
digest
public static MD5 digest(java.io.File f) throws java.security.NoSuchAlgorithmException, java.lang.Exception
- Throws:
java.security.NoSuchAlgorithmException
java.lang.Exception
-
digest
public static MD5 digest(java.io.InputStream f) throws java.security.NoSuchAlgorithmException, java.lang.Exception
- Throws:
java.security.NoSuchAlgorithmException
java.lang.Exception
-
-