com.founder.ecrx.utils.SM3Signature Maven / Gradle / Ivy
package com.founder.ecrx.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SM3Signature
{
private static final Logger logger = LoggerFactory.getLogger(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;
}
}