How Protect The properties: User Password Database HostName
Posted: 13.03.2009, 16:45
hi all, i use Delphi7 and Zeos Components 6.6.1 beta
easy my question: How Protect The properties: User Password Database HostName
sample: suppose i have a form named: FLogin and a Connection named: Zconnection
in form create i have a simple configuration of my Zconnection component:
procedure TFlogin.FormCreate(Sender: TObject);
begin
Zconnection.Hostname:='192.168.0.3';
Zconnection.User:='mydbuser';
Zconnection.Password:='mydbpass';
Zconnection.Database:='mydb';
Zconnection.Connected:=true;
end;
suppose for the rest of my team (5 ppl) i share my Flogin.Dcu they cant see the user and password and hostname and database in design time right ?
but they can know if in any form type something:
Form1.Caption:='User: '+Flogin.Zconnection.User+' Password: '+Flogin.Zconnection.Password+' Hostname: '+Flogin.Zconnection.Hostname+' Database: '+Flogin.Zconnection.Database;
then they know the parameters, my question is: how protect these 4 parameters, and only share the connection?
Thanks
easy my question: How Protect The properties: User Password Database HostName
sample: suppose i have a form named: FLogin and a Connection named: Zconnection
in form create i have a simple configuration of my Zconnection component:
procedure TFlogin.FormCreate(Sender: TObject);
begin
Zconnection.Hostname:='192.168.0.3';
Zconnection.User:='mydbuser';
Zconnection.Password:='mydbpass';
Zconnection.Database:='mydb';
Zconnection.Connected:=true;
end;
suppose for the rest of my team (5 ppl) i share my Flogin.Dcu they cant see the user and password and hostname and database in design time right ?
but they can know if in any form type something:
Form1.Caption:='User: '+Flogin.Zconnection.User+' Password: '+Flogin.Zconnection.Password+' Hostname: '+Flogin.Zconnection.Hostname+' Database: '+Flogin.Zconnection.Database;
then they know the parameters, my question is: how protect these 4 parameters, and only share the connection?
Thanks