dram.me

OFBiz中的密码摘要处理

OFBiz的密码摘要的基本格式为{算法名}...,但还包括一个额外的可选的oldFunnyHex步骤,详细的说明可以查看08349e5提交。

基本代码逻辑为:

org.apache.commons.codec.binary.Hex.encodeHexString(java.security.MessageDigest.getInstance("SHA").digest("ofbiz".getBytes(java.nio.charset.StandardCharsets.UTF_8)));