package com.laker.admin.service;

import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import com.laker.admin.utils.IP2CityUtil;

public class Test {

    public static void main(String[] args) {
        String s = SecureUtil.sha256("lakernote");
        System.out.println(s);

        String cityInfo = IP2CityUtil.getCityInfo("120.36.3.41");
        System.out.println(cityInfo);
        String[] split = cityInfo.split("\\|");
        System.out.println(StrUtil.format("{}.{}.{}.{}", split[0], split[2], split[3], split[4]));
    }
}
