-
Notifications
You must be signed in to change notification settings - Fork 282
Open
Description
前端用sm-crypto的sm3加密:
sm3('11111',{key:'0123456789abcdeffedcba9876543210'}
后端用hutool的hmac加密:
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);
得出来的结果不一样是为什么?
Metadata
Metadata
Assignees
Labels
No labels