Crypt-Blowfish_PP

 view release on metacpan or  search on metacpan

Blowfish_PP.pm  view on Meta::CPAN

it with other people's code... :)

If you want speed, then see the Crypt::Blowfish module.

=head1 AUTHOR

Matthew Byng-Maddick <C<mbm@colondot.net>>

=head1 SEE ALSO

http://www.counterpane.com/,L<Crypt::CBC>

=cut

1;

CHANGELOG  view on Meta::CPAN

v1.12	-	Fixed typo in POD where 144 bits should have said 448 bits
		for the key length. Also changed syntax of "for my $var" to
		"my $var; for $var" to maintain backward compatibility.
		Also, please note new email address, as the old one might
		stop working soon... :)
v1.11	-	Fixed a bug where I couldn't count so that 1.10 didn't
		work with Crypt::CBC
v1.10	-	Fixed most of the bugs, so it now is SSLeay compatible.
		Bugs fixed include:
		+ Perl overflows if you add large numbers, rather than
		  + %(2^32)
		+ fixed the rounds (actually, I've forgotten exactly,
		  because I've been screwing around with them so much).
		+ fixed the keysize, because I can't multiply by 4
		+ changed the internal structure to use a crypt_block()
		  function for encryption and decryption, which has a
		  for() loop on the rounds.
v1.03	-	Changed t/blowfish.t to use the Blowfish_PP module.
v1.02	-	Changed name to Crypt::Blowfish_PP to fix compatibility
		issues with Dave Paris's Crypt::Blowfish module written
		in C.
v1.01	-	Fixed compatibility issues with blocksize() and keysize()
		needed by Crypt::CBC
v1.00	-	First release, implements block encryption and decryption.

README  view on Meta::CPAN


It uses anywhere between a 64 bit and a 448 bit key. The transform itself is
fast and operates on a 64 bit block, and most of the calculation time is in
initialising the context with the key data.

The _PP name comes from the fact that this implementation is Pure Perl, and
will not have any compatibility problems.

I have not included any sort of multiblock structure in this implementation
(I might do in future), so to be useful you will probably need something
like Crypt::CBC. (v1.01 fixes the compatibility issues with Crypt::CBC)

This passes the test vectors on http://www.counterpane.com/vectors.txt

To install, untar the module

do the standard:
$ perl Makefile.PL
$ make
$ make test
# make install



( run in 0.835 second using v1.01-cache-2.11-cpan-e1769b4cff6 )