public String getKey() {
        javax.crypto.KeyGenerator keygen = null;
        try {
            keygen = javax.crypto.KeyGenerator.getInstance("AES");
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }
        SecretKey deskey = keygen.generateKey();
        return Base64.encodeToString(deskey.getEncoded());
    }
@ClassName: KeyGenerator
@Description: TODO
@Author: Summer
@Date: 2021/12/3 11:54
@Version: v1.0.0
@Description:
src/main/java/com/summersec/attack/Encrypt/KeyGenerator.java