To build Crypt::Idea we need to add: #define sv_undef PL_sv_undef
to the top of IDEA.xs before trying to compile. from: http://www.cpan.org/modules/by-authors/Lincoln_D_Stein/Crypt-CBC-2.01.readme we get: This is Crypt::CBC, a Perl-only implementation of the cryptographic cipher block chaining mode (CBC). In combination with a block cipher such as Crypt::DES or Crypt::IDEA, you can encrypt and decrypt messages of arbitrarily long length. The encrypted messages are compatible with the encryption format used by B<SSLeay>. Prerequisites ------------- In addition to this module you will need to install the MD5 module, and one or more of the Crypt::DES, Crypt::IDEA, or Crypt::Blowfish modules. 1. MD5 Required for key and iteration vector generation. 2. Crypt::DES Required for the DES encryption algorithm. 3. Crypt::IDEA Required for the IDEA encryption algorithm. 4. Crypt::Blowfish Required for the Blowfish encryption algorithm. You can MD5, Crypt::DES, and Crypt::IDEA on a CPAN near you. Crypt::Blowfish can be found on the Cryptix web site at http://www.cryptix.org/. The Cryptix site also has versions of Crypt::DES and Crypt::IDEA that are slightly different from the CPAN versions. Since these seem to be later versions, I suggest that you download and install the entire Cryptix Perl distribution. In order to get the Crypt:: modules to compile under Perl 5.005 or later, you must add the following line to the DES.xs, IDEA.xs and Blowfish.xs files: #define sv_undef PL_sv_undef For your convenience, a patch file which will bring the Cryptix directory up to date is included in this distribution. It is named cryptix-5.005.patch. Use it like this: % cd Cryptix-1.16 % patch -p1 < ../Crypt-CBC/cryptix-5.005.patch patching file Crypt-Blowfish/Blowfish.xs patching file Crypt-DES/DES.xs patching file Crypt-IDEA/IDEA.xs Then install the Cryptix modules using "perl Makefile.PL; make; make install". On Mon, Oct 07, 2002 at 02:00:53PM +0100, dan wrote: > Well I managed to locally install it on the box that I use. > > Unix, FreeBSD, 4.6.2-RELEASE > > Dan > > "Peterkorman" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, Oct 07, 2002 at 06:51:05AM -0400, zentara wrote: > > On Sun, 6 Oct 2002 19:28:22 +0100, [EMAIL PROTECTED] (Dan) wrote: > > > > >Am after suggestions about which Crypt:: module (or any module at that > > >matter) would be best to encrypt passwords for storage, and decrypt them > > >again for using within the script. > > > > > >Passwords on my script are generally required to be between 8 & 16 > > >characters. Any ideas? > > > > I like to use Crypt::RC4 because it's fast, easy, and is a pure perl > > module which can be used on remote servers from your personal lib. > > Read the pod , I think you can use a plain ascii key, but the hex key > > method is slightly more obscure to a casual observer. > > ############################################################## > > #!/usr/bin/perl > > use Crypt::RC4; > > Did you do a cpan install? What os/distribution/version ? Thanks. > > JPK > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
msg31831/pgp00000.pgp
Description: PGP signature