Class MD5
java.lang.Object
javaforce.MD5
In cryptography,
MD5 (Message-Digest algorithm 5) is a widely used cryptographic
hash function with a 128-bit hash value.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(byte[] input, int inputOffset, int inputLen) MD5 block add operation.voidAdds a string.char[]byte2char(byte[] b) Converts binary output of done() to 64 charsbyte[]done()MD5 finalization.voidinit()MD5 initialization.toString()Finalize MD5 and return as a string.
-
Constructor Details
-
MD5
public MD5()
-
-
Method Details
-
init
public void init()MD5 initialization. Begins an MD5 operation. -
add
public void add(byte[] input, int inputOffset, int inputLen) MD5 block add operation. Continues an MD5 message-digest operation, processing another message block, and updating the context. -
add
Adds a string. -
done
public byte[] done()MD5 finalization. Ends an MD5 message-digest operation, writing the the message digest and zeroizing the context. -
toString
-
byte2char
public char[] byte2char(byte[] b) Converts binary output of done() to 64 chars
-