revert First experimental encryption implementation (not working)
This commit is contained in:
2025-12-03 09:19:05 +00:00
parent aed8a63f41
commit f78b49ffd5
7 changed files with 1310 additions and 507 deletions

View File

@@ -42,19 +42,6 @@ namespace SamaPager_Client
UdpStack.Send(msgData, msgData.Length, serverEndPoint);
}
internal void SendEncryptedMessage(string message, string key)
{
char[] encryptedMessage = new char[0];
for (int i = 0; i < message.Length; i++)
{
char cock = (char)(message[i] ^ key[i % key.Length]);
encryptedMessage.Append(cock);
}
MessageBox.Show(Convert.ToBase64String(Encoding.UTF8.GetBytes(encryptedMessage)));
}
internal string SendCommand(string command)
{
byte[] msgData = Encoding.UTF8.GetBytes(command);