package com.mortals.httpclient;

import java.security.NoSuchAlgorithmException;

/**
 * @author: zxfei
 * @date: 2022/5/18 10:35
 * @description:
 **/
public class Test {
    public static void main(String[] args) throws NoSuchAlgorithmException {
//        SM4Utils sm4 = new SM4Utils();
//        sm4.secretKey = "JeF8U9wHFOMfs2Y8";
//        sm4.hexString = false;
//        String transformation = "SM4/ECB/Padding";
//        SMCipher clipher = SMCipher.getInstance(transformation);
//        clipher.init(1, sm4.secretKey.getBytes(), sm4.iv.getBytes());
//        byte[] result = clipher.doFinal(plainText.getBytes());
//        System.out.println(Base64.encodeBase64URLSafeString(result));

    }
}
