progress on RequestToString
This commit is contained in:
parent
90a3be5754
commit
9a0482fd56
3 changed files with 83 additions and 23 deletions
|
@ -60,8 +60,8 @@ public class Program
|
|||
// Get AES session key
|
||||
int len = await stream.ReadAsync(buffer);
|
||||
Aes sk = Aes.Create();
|
||||
sk.Key = buffer[..256]; // just to make sure no one sends a too big to be true key
|
||||
sk.IV = buffer[256..len];
|
||||
sk.Key = buffer[..32]; // just to make sure no one sends a too big to be true key
|
||||
sk.IV = buffer[32..len];
|
||||
Write(id, "key + iv: " + len.ToString());
|
||||
|
||||
// Get first message (should be either login or )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue