您不能在不将其转换为字符串的情况下直接使用seq20吗?我会这样:
md.update( seq20 ); byte[] md5sum = md.digest();BigInteger bigInt = new BigInteger(1, md5sum);output = bigInt.toString(16);while ( output.length() < 32 ) { output = "0"+output;}
您不能在不将其转换为字符串的情况下直接使用seq20吗?我会这样:
md.update( seq20 ); byte[] md5sum = md.digest();BigInteger bigInt = new BigInteger(1, md5sum);output = bigInt.toString(16);while ( output.length() < 32 ) { output = "0"+output;}