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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy