package com.gree.mall.manager.utils;

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

@Slf4j
public class JiaSMUtil {

    private static final String common_secret = "jxmsm&s!a@f^c$74fd81^";

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