Perl Crypt-CBC

Well, there's a dependency for Crypt-CBC.
Plus, I'm really excellent at beating dead horses.  < grin >
So this should do it, complete:


setenv PERL5LIB ~/lib
mkdir ~/lib
cd ~/lib

wget
http://search.cpan.org/CPAN/authors/id/L/LD/LDS/Crypt-CBC-2.15.tar.gz
tar -zxvf Crypt-CBC-2.15.tar.gz
cd Crypt-CBC-2.15
perl Makefile.PL PREFIX=~/lib LIB=~/lib
make
make test
make install

wget
http://search.cpan.org/CPAN/authors/id/D/DP/DPARIS/Crypt-Blowfish-2.09.t
ar.gz
tar -zxvf Crypt-Blowfish-2.09.tar.gz
cd ../Crypt-Blowfish-2.09
perl Makefile.PL PREFIX=~/lib LIB=~/lib
make
make test
make install

cd ../
vi test.pl

#!/usr/bin/perl
use Crypt::Blowfish;
my $key = pack("H16", "0123456789ABCDEF");  # min. 8 bytes
my $cipher = new Crypt::Blowfish $key;
my $ciphertext = $cipher->encrypt("plaintex");
print unpack("H16", $ciphertext), "\n";

perl test.pl
ea03e67434315a63
 
perl/crypt-cbc.txt · Last modified: 2005/09/22 22:03 by bw
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki