/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.google.gson.Gson
 *  com.google.gson.GsonBuilder
 */
package com.hst.test;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ifugle.util.export.AESUtil;

public class EncryptTest {
    private static final Gson GSON = new GsonBuilder().create();

    public static void main(String[] args) throws Exception {
        String key = "tbFmpYo9wulNI6qHjTEZLHxosBo1a5MKtlqIUeLMKug=";
        System.out.println("\u52a0\u5bc6\u79d8\u94a5\uff1a" + key);
        Object result = new Object();
        String json = GSON.toJson(result);
        System.out.println("\u52a0\u5bc6\u524d\u7684\u6570\u636e\uff1a" + json);
        String encrypt = AESUtil.encryptWithZipToBase64(json, key);
        System.out.println("\u52a0\u5bc6\u540e\u7684\u6570\u636e\uff1a" + encrypt);
        Object mxsjResult = new Object();
        String json1 = GSON.toJson(mxsjResult);
        System.out.println("\u52a0\u5bc6\u524d\u7684\u6570\u636e\uff1a" + json1);
        String encrypt1 = AESUtil.encryptWithZipToBase64(json1, key);
        System.out.println("\u52a0\u5bc6\u540e\u7684\u6570\u636e\uff1a" + encrypt1);
        Object form = new Object();
        String json2 = GSON.toJson(form);
        System.out.println("\u52a0\u5bc6\u524d\u7684\u6570\u636e\uff1a" + json2);
        String encrypt2 = AESUtil.encryptWithZipToBase64(json2, key);
        System.out.println("\u52a0\u5bc6\u540e\u7684\u6570\u636e\uff1a" + encrypt2);
        String decrypt = AESUtil.decryptWithUnzipFromBase64(encrypt2, key);
        System.out.println(decrypt);
    }
}
