Autor Beitrag
Larus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: So 27.02.05 21:01 
Wie funktioniert die Verschlüsselung mit Xor? Ich verstehe das nicht so ganz, da ich Xor immernoch für Entweder... Oder halte :)
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: So 27.02.05 21:20 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var s: string;

s := 'hallo das ist ein test';

for i := 1 to length(s) do
  s[i] := char(byte(s[i]) xor 12);


entschlüsselung ist das selbe

Moderiert von user profile iconAXMD: Delphi-Tags repariert
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: So 27.02.05 21:23 
ausblenden Quelltext
1:
2:
Wert1 XOR Wert2 = Wert3
Wert3 XOR Wert2 = Wert1

du nimmst also den byte-wert eines buchstabens( ord(Buchstabe) ), und XORst den mit einer zahl < 256
das Resultat ist der verschlüsselte buchstabe. mit XOR zahl kommst du dann wieder auf den anfangswert.
Larus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Mo 28.02.05 15:55 
Was bedeutet Xor in diesem Fall???
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mo 28.02.05 16:39 
bitweise entweder oder

01010101 xor
01011100

00001001

aber google hätte da auch geholfen
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Mo 28.02.05 16:45 
Ich würde aber eher zu doppelter ROT 13-Verschlüsselung raten ;)

Bis neulich ...
Larus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Mo 28.02.05 17:34 
Besten dank... also verschlüsselung mit Bits... Jetzt weiß ich wie es funktioniert...