String ret
里面的value是
[-9, -30, 56, 66, 107, -48, -108, -65, 78, -45, -60, -117, -60, 13, -19, 79, -40, -19, -94]
但是经过ret.getBytes()后数据变成了
[-61, -73, -61, -94, 56, 66, 107, -61, -112, -62, -108, -62, -65, 78, -61, -109, -61, -124, -62, -117, -61, -124, 13, -61, -83, 79, -61, -104, -61, -83, -62, -94]
转成hexstring
a11 = c3b7c3a238426bc390c294c2bf4ec393c384c28bc3840dc3ad4fc398c3adc2a2
你的getBytes会改变数据,我曰
那怎么把hexstring改成之前的string呢
用 new String(hexStringToByteArray(a11))