Java Code Examples for com.lorne.core.framework.utils.encode.MD5Util#md5()

The following examples show how to use com.lorne.core.framework.utils.encode.MD5Util#md5() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Sha1Util.java    From pay with Apache License 2.0 5 votes vote down vote up
public static String getNonceStr() {
	Random random = new Random();
	try {
		return MD5Util.md5(String.valueOf(random.nextInt(10000)).getBytes("utf-8"));
	} catch (UnsupportedEncodingException e) {
		return null;
	}
}
 
Example 2
Source File: Sha1Util.java    From pay with Apache License 2.0 5 votes vote down vote up
public static String getNonceStr() {
	Random random = new Random();
	try {
		return MD5Util.md5(String.valueOf(random.nextInt(10000)).getBytes("utf-8"));
	} catch (UnsupportedEncodingException e) {
		return null;
	}
}
 
Example 3
Source File: ModelNameServiceImpl.java    From tx-lcn with Apache License 2.0 4 votes vote down vote up
@Override
public String getUniqueKey() {
    String address = getIp()+providerConfig.getPort();
    return  MD5Util.md5(address.getBytes());
}
 
Example 4
Source File: ModelNameServiceImpl.java    From tx-lcn with Apache License 2.0 4 votes vote down vote up
@Override
public String getUniqueKey() {
    String address = getIp()+serverListener.getPort();
    return  MD5Util.md5(address.getBytes());
}