Yeah, this is an annoying aspect of the Win32 distribution of perl. Since the windows C/C++ API/libraries doesn't include fcrypt (from a shaky knowledge of what is there), presumably because it uses a different API for handling passwords (which is what crypt is for). So if you want it you need to download it from Sarathys (GSAR)'s site at ActiveState.1.And it is valid as of the writing of this post. As a catch all, the link is hosted in Canada so theres no trouble with the US feds.

And theres the point. There is no restriction on the distribution of crypt these days from what I know, its everywhere already. Every distribution of linux has it somewhere doesn't it? I think the perl position is a hangover of when the US had much more restrictive laws on the export of encryption technology. So I dont think there is any reason not to distribute fcrypt.c in win32 directory. Who knows, if you pester the P5P mailing list they might check with a lwayer and put it back in (assuming I'm correct). But, unless harassed and helped to do so (ie, documentation updates, legal opinions, repeated mails to the right people, Hugo's consent, etc) they won't bother, as it is so freely available elsewhere. Especially as Abigail-II so amusingly put it, many Win32 users of Perl wont have a C compiler. Or they would build the cygwin version instead and not have to worry about it. But for those of us with VC++ or Borland, its a touch annoying having to do the extra download. Especially if you forget. :-)

Anyway, nowadays there are better techniques available than crypt. Its there to keep the unix people happy. For the rest of us, (and even for the unix people most times) you can forget it and use something stronger. There are lots of good encryption packages available from CPAN.

  1. Strangely, (and for me surprisingly), the perlwin32 in AS 633 doesnt contain this link. The source to bleadperl that I have handy (a few months old) does contain it in REAME.win32 which I always thought was the source turned into perlwin32.html. Ive never built an AS patched version. Although I use their precompiles all the time.

---
demerphq



In reply to Re: Perl sources and crypt() by demerphq
in thread Perl sources and crypt() by gmpassos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.