in reply to Re: Crypted password under Win32
in thread Crypted password under Win32

More on the crypt:

From "readme.win32"

<snippet>

If you have either the source or a library that contains des_fcrypt(), enable the appropriate option in the makefile. des_fcrypt() is not bundled with the distribution due to US Government restrictions on the export of cryptographic software. Nevertheless, this routine is part of the ``libdes'' library (written by Eric Young) which is widely available worldwide, usually along with SSLeay (for example: ``ftp://fractal.mta.ca/pub/crypto/SSLeay/DES/''). Set CRYPT_SRC to the name of the file that implements des_fcrypt(). Alternatively, if you have built a library that contains des_fcrypt(), you can set CRYPT_LIB to point to the library name. The location above contains many versions of the ``libdes'' library, all with slightly different implementations of des_fcrypt(). Older versions have a single, self-contained file (fcrypt.c) that implements crypt(), so they may be easier to use. A patch against the fcrypt.c found in libdes-3.06 is in des_fcrypt.patch.

Perl will also build without des_fcrypt(), but the crypt() builtin will fail at run time.

</snippet>

So, if recompiling your perl is an option, here's another solution. Not that this all makes sense to me....

~Hammy

Replies are listed 'Best First'.
(tye)Re: Crypted password under Win32
by tye (Sage) on Jul 10, 2001 at 22:52 UTC

    That information is old. Modern versions of Perl from ActiveState and InigoStar come with working crypt that does exactly the same as the crypt of Unix Perls.

            - tye (but my friends call me "Tye")

      Excuse me, I was just going on the documentation from active perl. I installed ActivePerl-5.6.1.626 not too long ago (May 9) and there is no mention of this.

      For that frikkin' matter, I just tried a "crypt()" call and it fails. While this information is old, it is by no means outdated. If my 2 month old version of Perl won't work, chances are good that this information applies to the question asked.

      BTW, this is the first time I've gotten crap for R'ing TFM!

      I'm not saying you're not right, but I don't expect to get depricated for relaying information that is in relatively current documentation.

      ~Hammy

        BTW, this is the first time I've gotten crap for R'ing TFM!

        I'm sorry you feel that I "gave you crap".

        crypt works in Perl 5.6 from both ActiveState and IndigoStar. I'd be quite surprised if ActiveState decided to remove this support in newer versions, but I haven't checked.

        You say "crypt()" failed. If it failed with "Not enough arguments for crypt", then you didn't prove anything. It used to fail under Win32 Perl with something like "crypt not implemented due to excessive paranoia". How does it fail now?

        I'm not saying you're not right, but I don't expect to get depricated for relaying information that is in relatively current documentation.

        I'm not sure what you mean by "depricated". All I did was reply with a correction to the information based on information that I had.

                - tye (but my friends call me "Tye")