import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
/**
* 密码加密工具类
*/
public class BCryptPasswordEncodingUtils {
private static BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
public static String encodingPassword(String password){
return bCryptPasswordEncoder.encode(password);
}
}
密码加密工具类
最新推荐文章于 2024-07-03 09:31:20 发布