Autor Beitrag
g1o2k4
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Di 07.02.06 20:03 
hi

ich überleg mir grad nen programm...da gabs doch diese vorgefertigte verschlüsslung in delphi wie ging die noch ?
da konnte man verschiedene verschlüsslungen angeben mit zahlen und der hat dann 'hallo' in ein zahlengewirr wie 'sidfjskn390fsh' umgewandelt und zurück gings auch.

weiß jemand was ich meine ? *hoff*

grüße g1o
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 07.02.06 20:17 
Zuerst dachte ich an MD5. Aber die ist nicht 'vorgefertigt'. Du könntest die XOR-Verschlüsselung meinen

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Di 07.02.06 20:44 
also md5 isses definitiv nicht ich hatte das schonmal aber leider vergessen.

da gab man ein welcher algorythmus benutzt wetrden soll und dann dann sagen ob man es encrypten oder decrypten will...
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 07.02.06 20:47 
user profile icong1o2k4 hat folgendes geschrieben:
also md5 isses definitiv nicht ich hatte das schonmal aber leider vergessen.

da gab man ein welcher algorythmus benutzt wetrden soll und dann dann sagen ob man es encrypten oder decrypten will...


Kenn ich nicht - meiner Meinung nach, 'vorgefertigt' ist nur die XOR-Verschlüsselung (unsicher).

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Di 07.02.06 20:53 
kannste mal code posten ?

also einfach bottunklick <- verschlüsseln ? wäre nett
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 07.02.06 21:07 
Ich zitiere hier aus dem EasyHelper:

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
Wie kann ich einfach Text verschlüssen, so dass er nicht auf Anhieb gelesen werden kann?

Das kannst Du mit der XOR-Methode machen. Sie ist nicht sonderlich sicher, aber ist einfach anzuwenden:

In S steht dann der verschlüsselte String drin:

procedure TForm1.Button1Click(Sender:TObject);
var 
  s: String;
  i: Integer;
begin
  // Kodieren
  s:=Edit1.Text;
  for i:=1 to length(s) do
    s[i]:=char(23 Xor Ord(s[i]));
end;

Entschlüsseln. Der verschlüsselte Text muss zuvor in S drinstehen:

procedure TForm1.Button2Click(Sender:TObject);
var 
  s: String;
  i: Integer;
begin
  // Dekodieren
  for i:=1 to length(s) do
    s[i]:=char(23 Xor ord(s[i]));
  Edit1.Text:=s;
end;

Für 23 kann eine beliebige Zahl zwischen 1 und 31 eingesetzt werden, wenn man eine Textdatei erstellen möchte. Man brauch also kaum 255 Versuche um diesen String zu entschlüsseln. Du kannst die Methode verbessern, indem Du für jeden Buchstaben eine andere Zahl nimmst. Lege eine Zahl per Random fest speichere sie als Header in der Datei und berechne aus dieser Zahl die nächsten.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Di 07.02.06 21:19 
jopp danke genau das wars.