Date: Mon, 22 Apr 2002 18:31:09 -0600 From: Zach Thompson <cublai@lastamericanempire.com> To: freebsd-questions@freebsd.org Subject: Re: crypt::CBC module problems Message-ID: <20020422183109.A55733@lastamericanempire.com> In-Reply-To: <009201c1ea75$1346ba00$b300a8c0@wenk>; from jeff@dsl.ca on Mon, Apr 22, 2002 at 08:15:08PM -0700 References: <001e01c1e965$b3a1f930$b300a8c0@wenk> <20020421180115.E82499@mars.thuis> <007901c1e98e$9b69e200$b300a8c0@wenk> <20020421234922.H82499@mars.thuis> <00bc01c1e99e$cb438930$b300a8c0@wenk> <20020422121031.L82499@mars.thuis> <LAW2-OE63YSl1q4gtop0000007b@hotmail.com> <009201c1ea75$1346ba00$b300a8c0@wenk>
next in thread | previous in thread | raw e-mail | index | archive | help
> > has anyone been receiving an error like this Usage: > Crypt::CBC::new(new > > Crypt::CBC block-cipher) when using a script that calls crypt::CBC? > i pass > > the tests when running crypt::CBC so does anyone know a solution to > this > > error? I'm running freebsd 4.4 and perl 5.00601. Please email me > if you > > have a clue. Thanks. > > Have you been able to run the example from the docs (perldoc Crypt::CBC)? For example, something like: perl -MCrypt::CBC -e ' my $cipher = new Crypt::CBC("my secret key","Blowfish"); my $ciphertext = $cipher->encrypt("This data is hush hush"); my $plaintext = $cipher->decrypt($ciphertext); print $plaintext, "\t", $ciphertext, "\n";' Output: This data is hush hush RandomIVˆáÝŸ»ç@å.4êsG8%m‡}#¹;¨í‹Ã+[+(›N I didn't see your original code (if you posted it at all) so I couldn't tell. Zach Thompson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422183109.A55733>