httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <>
Subject Re: Missing Features of htdigest.c
Date Mon, 25 Jul 2005 03:33:44 GMT

> As I wrote in my previous message, for example, the only way to add a
> user or change a password from a program and non-interactively, is by
> hacking with TIOCNOTTY and then piping the password twice into
> htpasswd.

only?  you can certainly add a new user via

  use Digest::MD5;

  my $user  = 'user';
  my $realm = 'realm';
  my $pass  = 'pass';

  print "$user:$realm:", Digest::MD5::md5_hex("$user:$realm:$pass"), "\n";

once you know the algorithm, parsing the file and changing passwords with
perl is just as simple :)


View raw message