Perl crypt()

David Miller justdave at
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,
>> "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:
>> 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   

More information about the developers mailing list