From d164dc7ca55eea536dd4c240c72d870ad4ce7c5e Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 19 Apr 2024 20:16:54 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A7=BB=E9=99=A4aes=E9=9A=8F?= =?UTF-8?q?=E6=9C=BA=E5=AD=97=E8=8A=82=E5=BA=8F=E5=88=97=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/utils/machine/launch.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/framework/utils/machine/launch.go b/src/framework/utils/machine/launch.go index 701b0b9f..35d47403 100644 --- a/src/framework/utils/machine/launch.go +++ b/src/framework/utils/machine/launch.go @@ -1,7 +1,6 @@ package machine import ( - "crypto/rand" "encoding/json" "fmt" "hash/fnv" @@ -112,18 +111,6 @@ func Launch() { } codeFileWrite(LaunchInfo) } else { - // 创建一个用于存储密钥的字节数组 - key := make([]byte, 32) - - // 使用crypto/rand包生成安全的随机字节序列 - _, err := rand.Read(key) - if err != nil { - fmt.Println("Error generating random key:", err) - return - } - - // 将随机生成的字节序列作为密钥打印出来 - fmt.Printf("Generated AES-256 key: %x\n", key) // 读取记录文件 data, err := codeFileRead() if err != nil {