com.founder.mip.utils.SM3Signature Maven / Gradle / Ivy
package com.founder.mip.utils;
import com.founder.core.log.MyLog;
public class SM3Signature {
private static final MyLog logger = MyLog.getLog(SM3Signature.class);
public static String getSign(String text) {
logger.debug("Sign Before SM3:" + text);
text = SM3Util.byteArrayToHexString(SM3Util.hash(text.getBytes()));
logger.debug("Sign Result SM3:" + text);
return text;
}
}