Autor Beitrag
TheBlackRave
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Di 11.03.03 21:21 
Hi!

Also mein Chat ist fast feritg muss nur noch die Verschlüsslungs Funktion vollenden. Naja jetzt zu meinem Problem!

Also er verschlüsselt die Narichten aber net den Nick. Naja ich hab ein Key womit man codieren und decodieren kann!

DeCodiert:
NoNick: TEST

Codiert:
äU&#381;Q<qÖÖ^ÙÛ

Der Nick wir mit codiert was ja net sein soll. Also der Nick ist auf 16 Stellen begrenzt. Dazu kommen noch 2 Stellen für ': '! Also 18! Da der Nick dynamisch ist es problematisch!
ausblenden Quelltext
1:
2:
MSG:=ServerInfo.Nick+': '+Text;
ClientSocket.Socket.SendText(Codieren(MSG));

So jetzt muss ich das so hinbekommen, dass er TextFeld.Lines.Add(Codieren(MSG));
das also MSG nach ':' sucht und mir die Stelle sagt. Vieleicht habt ihr eine Idee wie ich das realisieren könnte. MSG durchsuchen NICK+': ' entfernen und den Rest zurück geben.

Danke für die Hilfe!

Moderiert von user profile iconTino: Absätze entfernt & Code-Tags hinzugefügt.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 11.03.03 22:03 
guckst du Hilfe:
Pos()
Copy()


Erst ": " suchen, Rest rauskopieren, verschlüsseln - vois là - feddisch

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
TheBlackRave Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Di 11.03.03 22:27 
Jojo hab schon gelöst danke aber!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 12.03.03 01:04 
Wie verschlüsselst du? Mit XOR? Dann aber vorsicht, da können nicht darstellbare Zeichen entstehen und dann könntest du Probleme bekommen.