All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.founder.ecrx.utils.SM3Signature Maven / Gradle / Ivy

There is a newer version: 3.6.1.9
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy