[Lazarus] input password htpasswd

Michael Van Canneyt michael at freepascal.org
Thu Dec 3 10:28:54 CET 2009



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');

Michael.




More information about the Lazarus mailing list