public class MD5 extends Object
| Constructor and Description |
|---|
MD5()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
dumpBytes(byte[] bytes)
This function dumps the bytes of a string to hexadecimal format.
|
static String |
md5(String data)
Returns the MD5 of a line of data.
|
void |
md5final(byte[] digest)
Final wrapup - pad to 64-byte boundary with the bit pattern
1 0* (64-bit count of bits processed, MSB-first)
|
void |
update(byte[] newbuf)
Function to add data to an already MD5'd buffer.
|
void |
update(byte[] newbuf,
int length)
Function to add data to an already MD5'd buffer.
|
void |
update(byte[] newbuf,
int bufstart,
int buflen)
Function to add data to an already MD5'd buffer.
|
public static String md5(String data)
data - The string to calculate an MD5 of.public void update(byte[] newbuf)
newbuf - Byte array to addpublic void update(byte[] newbuf,
int length)
newbuf - Byte array to addlength - Length of byte(s) to addpublic void update(byte[] newbuf,
int bufstart,
int buflen)
newbuf - Byte array to addbufstart - Where in the newbuf to start frombuflen - Length of bytes to copypublic void md5final(byte[] digest)
public String dumpBytes(byte[] bytes)
bytes - Bytes to dumpCopyright © 2015. All rights reserved.