This commit is contained in:
2024-10-12 21:35:35 +08:00
parent dd8d23416c
commit 3d3ab79e20
36 changed files with 85 additions and 115 deletions

8
aes.go
View File

@@ -48,15 +48,13 @@ type Data struct {
func main() {
// 定义 AES 密钥
key, _ := hex.DecodeString("0ebf6481d213c846070c8f2964617d42")
key, _ := hex.DecodeString("ff83609b2b24fc73196aac3d3dfb874f")
var data interface{}
data = map[string]interface{}{
"id_card": "45212220000827423X",
"name": "张荣宏",
"mobile_no": "18276151590",
"time_range": "5",
"id_card": "45212220000827423X",
"name": "张荣宏",
}
// 将结构体转为 JSON 字符串