Excel文本 AES加密

2025-03-10 18:44:37
推荐回答(1个)
回答1:

// byte[] key = new byte[32] { 1, 2, 3, 4, 5, 6, 7, 8 ,0,0,0,0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

            // byte[] iv = new byte[16];

            // byte[] content = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };

            // byte[] result = AesRequest.AESEncrypt(content, key, iv);

            Console.WriteLine("请求方法:http://127.0.0.1:8080/AES?msg=12345678&password=123456\nUrl参数编码:utf-8");

            HttpServer httpServer = new HttpServer();

            httpServer.Start();

            Console.Read();

            httpServer.Stop();