public final class MD5 extends Object
Modifed version of Fast MD5 for Java 2.7.1 (from http://www.twmacinta.com/myjava/fast_md5.php) Modifications from the original source : - Removed native code support - Stripped some code - Removed wacky synchronization - Reformatted code to match Java and FFMQ standards
This Java class has been derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm and its reference implementation.| Constructor and Description |
|---|
MD5()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest()
Returns array of bytes (16 bytes) representing hash as of the current
state of this object.
|
void |
reset()
Reset MD5 internal state
|
void |
update(byte[] buffer)
Updates hash with given array of bytes
|
void |
update(byte[] buffer,
int offset,
int length)
Updates hash with the bytebuffer given (using at maximum length bytes from that buffer)
|
public void reset()
public void update(byte[] buffer,
int offset,
int length)
buffer - Array of bytes to be hashedoffset - Offset to buffer arraylength - Use at maximum `length' bytes (absolute maximum is buffer.length)public void update(byte[] buffer)
buffer - Array of bytes to use for updating the hashpublic byte[] digest()
Copyright © 2019. All rights reserved.