Authen::Htpasswd

Perl interface to read and modify Apache .htpasswd files.
Download

Authen::Htpasswd Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Kamholz
  • Publisher web site:
  • http://search.cpan.org/~mramberg/Catalyst-Plugin-Authentication-Store-DBIC-0.09/lib/Catalyst/Plugin/Authentication/Store/DBIC/Backend.pm

Authen::Htpasswd Tags


Authen::Htpasswd Description

Perl interface to read and modify Apache .htpasswd files. Authen::Htpasswd is a Perl interface to read and modify Apache .htpasswd files.SYNOPSIS my $pwfile = Authen::Htpasswd->new('user.txt', { encrypt_hash => 'md5' }); # authenticate a user (checks all hash methods by default) if ($pwfile->check_user_password('bob', 'foo')) { ... } # modify the file (writes immediately) $pwfile->update_user('bob', $password, $info); $pwfile->add_user('jim', $password); $pwfile->delete_user('jim'); # get user objects tied to a file my $user = $pwfile->lookup_user('bob'); if ($user->check_password('vroom', )) { ... } # only use secure hashes $user->password('foo'); # writes to file $user->set(password => 'bar', extra_info => 'editor'); # change more than one thing at once # or manage the file yourself my $user = Authen::Htpasswd::User->new('bill', { hashed_password => 'iQ.IuWbUIhlPE' }); my $user = Authen::Htpasswd::User->new('bill', 'bar', 'staff', { encrypt_hash => 'crypt' }); print PASSWD $user->to_line, " ";This module provides a convenient, object-oriented interface to Apache-style .htpasswd files.It supports passwords encrypted via MD5, SHA1, and crypt, as well as plain (cleartext) passwords.Additional fields after username and password, if present, are accessible via the extra_info array. Requirements: · Perl


Authen::Htpasswd Related Software