Package shchuko.md5genlib
Class MD5RollingGen
- java.lang.Object
-
- shchuko.md5genlib.MD5Gen
-
- shchuko.md5genlib.MD5RollingGen
-
public class MD5RollingGen extends MD5Gen
MD5 hash generator based on rolling step-by-step algorithm. Use it to prevent heap overflow
-
-
Constructor Summary
Constructors Constructor Description MD5RollingGen()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MD5RollingGen
addBytesPart(byte[] bytesPart)
Add part of bytes to calculate MD5 hashMD5HashResult
getHashResult()
Get hash result from added bytes.void
reset()
Start new calculationMD5Gen
update(byte[] input)
Reset and calculate new hash from input-
Methods inherited from class shchuko.md5genlib.MD5Gen
getHashBytes, getHashHexString
-
-
-
-
Method Detail
-
update
public MD5Gen update(byte[] input)
Reset and calculate new hash from input
-
getHashResult
public MD5HashResult getHashResult()
Get hash result from added bytes. To add bytes useupdate(byte[])
oraddBytesPart(byte[])
- Overrides:
getHashResult
in classMD5Gen
- Returns:
- MD5 hash calculation result
-
reset
public void reset()
Start new calculation
-
addBytesPart
public MD5RollingGen addBytesPart(byte[] bytesPart)
Add part of bytes to calculate MD5 hash- Parameters:
bytesPart
- Part of bytes- Returns:
- Reference to this object
-
-