perl.crypto...Re: seeming failure with a specific word by zentara- January 6, 2006 On Thu, 05 Jan 2006 21:54:02 -0500, mlandmanface2interface.com (MartyLandman) wrote:>I&39;m trying to fix a bug in my application which encrypts using the >>MartyHi, here are a couple of snippets that work. The basic problem I sawwas that files needed to be slurped into a scalar before encrypting,NOT done line by line, or by buffer-segments.So here are 2 good ways, the first for files, the second for strings.!usrbinperluse warnings;use strict;use Crypt::CBC;my $KEY =...http://www.nntp.perl.org/group/perl.crypto/2006/01/msg80.html Re: seeming failure with a specific word by zentara- January 6, 2006 On Thu, 05 Jan 2006 21:54:02 -0500, mlandmanface2interface.com (MartyLandman) wrote:>I&39;m trying to fix a bug in my application which encrypts using the >following -- only the $key and &39;iv&39; have been changed :>The problem only seems to crop up when the value Neil is used afaik. Is my >initialization hosed, so that this kind of thing is likely to happen I >notice from the CPAN writeup>>Yuck, what a mess. This site&39;s in production and my client&39;s just thrilled...http://www.nntp.perl.org/group/perl.crypto/2006/01/msg79.html Re: seeming failure with a specific word by Marty Landman- January 6, 2006 At 06:14 AM 162006, zentara wrote:>Hi, have you tested the encryption-decryption manually, using the same >values, without the web or database partThis took a while to nail down.>Because you may be thinking it&39;s an encryption problem, but it may >actually be something like the web transfer or database transaction is >adding or stripping spaces(or newlines), or do some kind of encoding change.Of course you&39;re right. I now believe it is caused by what Mysql docs list as a...http://www.nntp.perl.org/group/perl.crypto/2006/01/msg78.html Re: seeming failure with a specific word by zentara- January 6, 2006 On Thu, 05 Jan 2006 21:54:02 -0500, mlandmanface2interface.com (MartyLandman) wrote:>I&39;m trying to fix a bug in my application which encrypts using the >following -- only the $key and &39;iv&39; have been changed :>> use Crypt::CBC();> my $key = pack(&39;H16&39;,"0123456789ABCDEF");> Crypt::CBC->new(> > &39;key&39; => $key,> &39;cipher&39; =>...http://www.nntp.perl.org/group/perl.crypto/2006/01/msg77.html seeming failure with a specific word by Marty Landman- January 5, 2006 I&39;m trying to fix a bug in my application which encrypts using the following -- only the $key and &39;iv&39; have been changed : use Crypt::CBC(); my $key = pack(&39;H16&39;,"0123456789ABCDEF"); Crypt::CBC->new( &39;key&39; => $key, &39;cipher&39; => &39;Blowfish&39;, &39;iv&39; => &39;Gopher!!&39;, ...http://www.nntp.perl.org/group/perl.crypto/2006/01/msg76.html |