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

io.soffa.foundation.commons.SignatureUtil Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package io.soffa.foundation.commons;

import org.apache.commons.codec.digest.HmacAlgorithms;
import org.apache.commons.codec.digest.HmacUtils;

public final class SignatureUtil {

    private SignatureUtil() {}

    public static String sign(String input, String secret) {
        HmacUtils hm256 = new HmacUtils(HmacAlgorithms.HMAC_SHA_256, secret);
        return hm256.hmacHex(input);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy