Perl crypt()

David Miller justdave at syndicomm.com
Wed Aug 13 17:26:44 UTC 2003


On 8/13/2003 6:38 AM -0400, Jason Pyeron wrote:

>> The problem is that according to
>> IEEE Std 1003.1, 2003 Edition,
>>http://www.unix.org/single_unix_specification/
>> "The crypt() function is a string encoding function. The algorithm is
>> implementation-defined. [...] The values returned by this function [crypt]
>> need not be portable among XSI-conformant systems."
>> (version 2: http://www.opengroup.org/onlinepubs/7908799/xsh/crypt.html)
>> But de-facto are the hashes compatible between different unix systems.
>
> yes, but one could standardize on the Perl implementation.

The Perl implementation isn't even standard across platforms.  It uses
libcrypt if you have it on your system, or whatever crypt() function your C
library supports.
-- 
Dave Miller      Project Leader, Bugzilla Bug Tracking System
http://www.justdave.net/             http://www.bugzilla.org/



More information about the developers mailing list