[Lazarus] input password htpasswd
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Dec 3 12:57:35 CET 2009
On Thu, 3 Dec 2009 10:28:54 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:
>
>
> On Wed, 2 Dec 2009, faread_w wrote:
>
> > everybody,please help me.i have case for use lazarus.i use linux fedora. i use htpasswd for cretead user and password.
> > if i use open termina concole i just type
> > /usr/bin/htpasswd -c tipe-file User
> > Add password: *****
> > Retype Password:*****
> >
> >
> > so if i use program lazarus,how to enter/input password htpasswd by using script on lazarus?
>
> htpasswd supports a -b option, so you can do
>
> ExecuteProcess('/usr/bin/htpasswd','-b -c tipe-file user password');
For security reasons you should never put passwords at the command
line. Pipe the passwords instead or create the .htaccess yourself.
Mattias
More information about the Lazarus
mailing list