java 手机号加密、解密

 public static void main(String[] args) throws Exception{
        String str1 = PhjfAppApiAesKit.aes.encode("123");
        System.out.println(str1);//VXYrTTYvbEk1cDIwMmN1aGh1cXVhZz09
        AES aes = AES.getInstance(PropKit.use(new File(PhjfAppApiConstStr.configPropertiesPath)).get("phjf.aes.key"));
        System.out.println(aes.encode("123"));//b01QMWYzUFpkYWpEY3hmUkxsbTBGQT09
    }

方法一:

PhjfAppApiAesKit.aes.encode

方法二:

AES.getInstance(PropKit.use(new File(PhjfAppApiConstStr.configPropertiesPath)).get("phjf.aes.key")).
encode("123")

猜你喜欢

转载自blog.csdn.net/yangdl6/article/details/88600728