We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
前端用sm-crypto的sm3加密: sm3('11111',{key:'0123456789abcdeffedcba9876543210'} 后端用hutool的hmac加密:
sm3('11111',{key:'0123456789abcdeffedcba9876543210'}
public static void main(String[] args) { String key = 0123456789abcdeffedcba9876543210"; String chars = HexUtil.encodeHexStr(key.getBytes()); System.out.println(chars); String param="11111"; Mac hMac = SmUtil.hmacSm3(key。getBytes); String s3 = hMac.digestHex(param); System.out.println(s3);
得出来的结果不一样是为什么?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
前端用sm-crypto的sm3加密:
sm3('11111',{key:'0123456789abcdeffedcba9876543210'}
后端用hutool的hmac加密:
得出来的结果不一样是为什么?
The text was updated successfully, but these errors were encountered: