NAME

Crypt::UnixCrypt_XS - perl xs interface for a portable traditional crypt function.

SYNOPSIS

use Crypt::UnixCrypt_XS qw/crypt/;
my $hashed = crypt( $key, $salt );

DESCRIPTION

This module implements the crypt function.

key is a password.

salt is a two-character string chosen from the set [a-zA-Z0-9./].

EXPORT

None by default.

RATIONAL

Crypt::UnixCrypt_XS provide a fast portable crypt function. Perl's internal crypt is not present at every system. Perl calls the crypt function of the system's C library. This may lead to trouble if the system's crypt presents different results for the same key and salt, but different processid's. Crypt::UnixCrypt is the cure here, but it is to slow. On my computer Crypt::UnixCrypt_XS is about 800 times faster than Crypt::UnixCrypt.

SEE ALSO

crypt(3), Crypt::UnixCrypt

AUTHOR

Boris Zentner, <bzm@bz.de>, the original C source code was written by Eric Young, eay@psych.uq.oz.au.

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Boris Zentner

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.