From owner-freebsd-questions Mon Apr 22 20:47:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (law2-oe29.hotmail.com [216.32.180.22]) by hub.freebsd.org (Postfix) with ESMTP id 4B6A837B438 for ; Mon, 22 Apr 2002 20:47:02 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 22 Apr 2002 20:47:00 -0700 X-Originating-IP: [209.246.111.233] From: "jyclee" To: "Zach Thompson" , 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> <009201c1ea75$1346ba00$b300a8c0@wenk> <20020422183109.A55733@lastamericanempire.com> Subject: Re: crypt::CBC module problems Date: Mon, 22 Apr 2002 23:52:24 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: X-OriginalArrivalTime: 23 Apr 2002 03:47:00.0741 (UTC) FILETIME=[8640A350:01C1EA79] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG just toyping with this script from http://www.oakbox.com/scripts/crypto.shtml and get this error Content-type: text/html Software error: Usage: Crypt::CBC::new(new Crypt::CBC block-cipher) at oak.cgi line 54 ----- Original Message ----- From: "Zach Thompson" To: Sent: Monday, April 22, 2002 8:31 PM Subject: Re: crypt::CBC module problems > > > 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^áÝY»ç@å.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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message