/**
* 生成key
* @param str
* @return
*/
private String getKey(String str){
try {
return MD5.create().digestHex(str, "utf-8");
} catch (Exception e) {
log.error("生成签名失败:{} ", e.getMessage());
return null;
}
}
}
javaMD5加密生成key方法
最新推荐文章于 2024-05-07 16:17:23 发布