mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Trim
This commit is contained in:
parent
842c968220
commit
4757c4be53
8 changed files with 97 additions and 189 deletions
|
|
@ -10,7 +10,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
class SocketWrapper
|
||||
{
|
||||
TcpClient c;
|
||||
IAesStream s;
|
||||
AesCfb8Stream s;
|
||||
bool encrypted = false;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -49,7 +49,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
{
|
||||
if (encrypted)
|
||||
throw new InvalidOperationException("Stream is already encrypted!?");
|
||||
this.s = CryptoHandler.getAesStream(c.GetStream(), secretKey);
|
||||
this.s = new AesCfb8Stream(c.GetStream(), secretKey);
|
||||
this.encrypted = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue