Package shchuko.md5genlib
Class MD5Gen
- java.lang.Object
-
- shchuko.md5genlib.MD5Gen
-
- Direct Known Subclasses:
MD5RollingGen
public class MD5Gen extends java.lang.Object
MD5 hash generator
-
-
Constructor Summary
Constructors Constructor Description MD5Gen()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]
getHashBytes()
Deprecated.UsegetHashResult()
.getHashBytes()
insteadjava.lang.String
getHashHexString(boolean upperCase)
Deprecated.UsegetHashResult()
.getHashHexString(boolean)
insteadMD5HashResult
getHashResult()
Get hash result asMD5HashResult
objectMD5Gen
update(byte[] input)
Generate MD5-hash for input bytes
-
-
-
Method Detail
-
update
public MD5Gen update(byte[] input)
Generate MD5-hash for input bytes- Parameters:
input
- Input bytes- Returns:
- Reference for this MD5Gen
-
getHashResult
public MD5HashResult getHashResult()
Get hash result asMD5HashResult
object- Returns:
MD5HashResult
object
-
getHashBytes
@Deprecated public byte[] getHashBytes()
Deprecated.UsegetHashResult()
.getHashBytes()
insteadGet generated MD5-hash value in bytes representation. To generate hash invokeupdate(byte[])
- Returns:
- MD5-hash value bytes
-
getHashHexString
@Deprecated public java.lang.String getHashHexString(boolean upperCase)
Deprecated.UsegetHashResult()
.getHashHexString(boolean)
insteadGet generated MD5-hash in HEX format. To generate hash invokeupdate(byte[])
- Parameters:
upperCase
- True: capital case HEX, false: lower case HEX- Returns:
- String with HEX hash value
-
-