public class MD5 extends Object
EXAMPLE 1: Static usage import org..alfresco.util.MD5; String x = MD5.Digest("hello".getBytes()); EXAMPLE 2: Per-thread non-static usage import org..alfresco.util.MD5; MD5 md5 = new MD5(); ... String x = md5.digest("hello".getBytes());
Constructor and Description |
---|
MD5()
Constructor for use with the unsynchronized/non-static method
"digest" method.
|
Modifier and Type | Method and Description |
---|---|
String |
digest(byte[] dataToHash)
Non-threadsafe MD5 digest (hashing) function
|
static String |
Digest(byte[] dataToHash)
Thread-safe static digest (hashing) function.
|
public MD5()
public static String Digest(byte[] dataToHash)
public String digest(byte[] dataToHash)
Copyright © 2005–2016 Alfresco Software. All rights reserved.