NAME

Authen::DecHpwd - Perl extension for DEC's password hashing algorithms.

SYNOPSIS

use Authen::DecHpwd;
my $username = 'MIKEM';
my $password = 'fred';
my $salt = 1234;
my $hash = Authen::DecHpwd::lgi_hpwd($name, $pw, Authen::DecHpwd::UAI_C_PURDY, $salt);

ABSTRACT

Generates password hashes compatible with DEC password hashing with the following algorithms PURDY Purdy polynomial over salted input PURDY_V Purdy polynomial + variable length username PURDY_S PURDY_V + additional bit rotation (UAI_C_AD_II is not supported by hpwd.c)

DESCRIPTION

This module contains lgi_hpwd, a function that hashes passwords compatible with DEC password hashing as used on VMS etc.

The resulting hash is an 8 octet binary string

On error, lgi_hpwd returns undef.

Tested on: Intel Linux with perl 5.8.0, Sparc Solaris withg perl 5.6.1 Intel Windows with perl 5.6.1

EXPORT

None by default.

Exportable constants

UAI_C_AD_II
UAI_C_PURDY
UAI_C_PURDY_S
UAI_C_PURDY_V

SEE ALSO

AUTHOR

Mike McCauley, Open System Consultants Pty Ltd <mikem@localdomain>

COPYRIGHT AND LICENSE

hpwd.c is derived from hpwd.c by Shawn A. Clifford (sysop@robot.nuceng.ufl.edu) and included on the DECUS 1996 Utilities. Remainder Copyright (C) 2003 Open System Consultants Pty Ltd

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.