Paranoia (revisited)

Alan Stewart astewart at
Fri Nov 5 10:45:09 CST 1999

On 4 Nov 99, at 19:46, Joel Fentin wrote:

> ~sdpm~
> Nobody answered. 
> My current thinking is that the paranoia message came from the
> fact that the crypt function relies on some UNIX command, but
> unavailable in DOS/Windoz.
The crypt function is a built-in Perl function that does the same thing that a Unix command 
does. Some people think that any crypto function is a crypto-munition and covered by US export 
laws. In order to make their Perl stuff exportable outside the US, they leave crypt out. This is 
bogus for several reasons. This paranoia has been propagated thru all the Win32 
implementations (and maybe others).

All or most of the Perl diagnostic messages are elaborated in perldiag.pod (found in your lib/Pod 
dir). The following para is from there:

    =item The crypt() function is unimplemented due to excessive paranoia

   (F) Configure couldn't find the crypt() function on your machine,
   probably because your vendor didn't supply it, probably because they
   think the U.S. Government thinks it's a secret, or at least that they
   will continue to pretend that it is.  And if you quote me on that, I
   will deny it.

In any case, there is a "replacement" module available on CPAN (and maybe at ActiveState):
that is portable Perl-only code. Since it is small, I will attach it here.

If you are not prepared to Make/Install, just create a lib/Crypt dir and copy the 
there. At the beginning of any script that needs crypt( ), include the lines:

  BEGIN { $Crypt::UnixCrpyt::OVERRIDE_BUILTIN = 1 }
  use Crypt::UnixCrypt;

and all will be well.

Alan Stewart          )-[]-(           Electronics Engineer
Code D621           ~        ~         Network Operations
SPAWARSYSCEN       ~          ~  \     Satellite Communications
53560 Hull St   ( ~            ~  )    tel (619)524-3625
San Diego,CA  __|___             /|    fax (619)524-2607
92152-5001   ^\____/^^^^^^\    __| |_  astewart at
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  Crypt-UnixCrypt-1_0_tar.gz
     Date:  4 Nov 1999, 19:12
     Size:  7972 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Crypt-UnixCrypt-1_0_tar.gz
Type: application/octet-stream
Size: 7972 bytes
Desc: not available
Url :

More information about the San-Diego-pm mailing list