Autor Beitrag
the-kecks
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157
Erhaltene Danke: 1

Windows Vista Home Premium 64Bit
Delphi 7 Ent.
BeitragVerfasst: Mo 04.05.09 16:18 
hi,
ich mache ein Programm, das account daten vor trojanern etc. schützen soll. das funzt so:
der benutzer tippt seine account daten ins programm ein, klickt auf "verschlüsseln" und das programm wandeln die buchstaben in den dezimalen ASCII code des buchstaben um und speichert das in ner txt. danach kann man sich die datei im programm die entschlüsseln lassen. das geht ja relativ einfach mit char().
nun brauche ich aber einen befehl mit dem ich buchstaben in die dezimal werte umwandeln lassen kann.

mfg
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 04.05.09 16:22 
Ich glaube, du brauchst eine Kombination aus StrToInt() und IntToStr() sowie Char() und Ord().

_________________
We are, we were and will not be.
the-kecks Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157
Erhaltene Danke: 1

Windows Vista Home Premium 64Bit
Delphi 7 Ent.
BeitragVerfasst: Mo 04.05.09 16:33 
danke!
falls jmd das gleiche problem hat:
ausblenden Delphi-Quelltext
1:
showmessage('A = '+IntToStr(Ord('A')));					


mfg
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 04.05.09 16:41 
Oder
ausblenden Delphi-Quelltext
1:
showmessage(Format('A = %d',[Ord('A')]));