package com.zfire.mall.manager.utils;

import cn.hutool.crypto.digest.DigestUtil;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class JiaSMUtil {

    private static final String supply_secret = "jxmsm&s!a@j^b$54fl92^";

    public static String jiasmDigest(String str, String timestamp) {
        return DigestUtil.sha1Hex("jiasm" + DigestUtil.md5Hex(timestamp) + DigestUtil.sha1Hex(supply_secret + str));
    }
}
