Autor Beitrag
somebody
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: Sa 16.06.07 19:26 
ich habe mal sonne Frage, ich habe ein passwortgeschütztes Programm versucht und ich wollte mal fragen welche nummer die Verschlüsselungsnummer für die Punkte ist? Das # Davor müsst ihr nicht mitposten.

mfg:somebody
rizla
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 417
Erhaltene Danke: 2

XP
FPC mit Lazarus
BeitragVerfasst: Sa 16.06.07 19:29 
???

_________________
if you have what they want - they'll find a way to take it (bruce sterling)
WOW - 10 JAHRE Mitglied beim Delphi-Forum. Wie die Zeit vergeht, Freunde.
Diskette
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

Win XP
Delphi 5 Pers., Borland Developer 2006 Prof.
BeitragVerfasst: Sa 16.06.07 19:59 
die punkte werden von windows eingesetzt,
in delphi kannst du diese nicht verwenden, soweit ich weiß...
Nimm einfach sowas wie:
PasswordChar := '*';
PasswortChar := '#';
PasswortChar := 'X';

Außerdem würde ich diese Methode nur für private oder für Projekte, wo es nicht 100 pro wichtig is, ob es sicher is.
Denn man kann dieses feld ganz einfach sichtbar machen (z.B. mit PantsOff, o.ä.)
Ich würde mir einfach ne Kompo selber machen...
LG,
Diskette
somebody Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: So 17.06.07 09:20 
ah, thx. Ne es, ist nur für Priate zwecke.

mfg:Somebody
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: So 17.06.07 09:27 
user profile iconDiskette hat folgendes geschrieben:
die punkte werden von windows eingesetzt,
in delphi kannst du diese nicht verwenden, soweit ich weiß...

user profile iconjakobwenzel hat folgendes geschrieben:
Lösung: Komponente vom Edit ableiten und CreateParams überschreiben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TPasswordEdit.CreateParams(var Params: TCreateParams);
begin
  inherited;
  params.style:=params.style or ES_Password;
end;


PasswordChar darf dabei nicht gesetzt sein!
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: So 17.06.07 09:32 
Die Punkte bekommt man auch, wenn man als Schriftart "Symbols" wählt und dann als Char den Punkt nimmt.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 17.06.07 21:44 
Was hat das mit Verschlüsselung zu tun???
Das ganze kann man per API trotzdem auslesen...

_________________
Programmers never die, they just GOSUB without RETURN
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 18.06.07 01:04 
user profile iconalias5000 hat folgendes geschrieben:
Was hat das mit Verschlüsselung zu tun???
Das ganze kann man per API trotzdem auslesen...

Unter Cosumer Windows ging das noch. Auf NT basierenden System geht da snicht mehr so einfach, dazu muss man auf den Speicher des anderen Prozesses zugreifen, um an die Eingabe zu kommen.
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Mo 18.06.07 01:50 
Man alternativ auch folgenden Trick verwenden:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var password : string;

procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
 password:=password+key;
 key:='*';
end;


So müsste man dann auch unter nicht-NT den Prozessspeicher auslesen um an das Passwort zu kommen.