package com.yx.face.boot.uitls;

import  com.yx.face.boot.core.Constants;
import org.springframework.util.DigestUtils;

/**
 * @description: PasswordUtils <br>
 * @date: 2021/5/20 16:30 <br>
 * @author: PWB <br>
 */
public class PasswordUtils {

    public static String buildPw(String password) {
        return DigestUtils.md5DigestAsHex(Constants.SALT_PRE.concat(password).concat(Constants.SALT).getBytes());
    }


}
