@Override
public String generatePrefix(String var1) {
if(var1 == null) {
;
}
char[] var3 = new char[]{‘0‘, ‘1‘, ‘2‘, ‘3‘, ‘4‘, ‘5‘, ‘6‘, ‘7‘, ‘8‘, ‘9‘, ‘a‘, ‘b‘, ‘c‘, ‘d‘, ‘e‘, ‘f‘};
byte[] var4 = var1.getBytes();
MessageDigest var5 = null;
try {
var5 = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException var12) {
;
}
var5.update(var4);
byte[] var6 = var5.digest();
int var7 = var6.length;
char[] var8 = new char[var7 * 2];
int var9 = 0;
for(int var10 = 0; var10 < var7; ++var10) {
byte var11 = var6[var10];
var8[var9++] = var3[var11 >>> 4 & 15];
var8[var9++] = var3[var11 & 15];
}
String var13 = new String(var8);
return var13.substring(1, 2) + var13.substring(3, 4) + var13.substring(5, 6);
}
==select concat(substr(md5(bill_id),2,1),substr(md5(bill_id),4,1),substr(md5(bill_id),6,1)) from quartz.boss_crm_user;
本文出自 “梦Dream” 博客,请务必保留此出处http://dreamy.blog.51cto.com/12471447/1914669
原文:http://dreamy.blog.51cto.com/12471447/1914669