From owner-freebsd-questions Tue Apr 23 9:51:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (law2-oe67.hotmail.com [216.32.180.160]) by hub.freebsd.org (Postfix) with ESMTP id 1615F37B400 for ; Tue, 23 Apr 2002 09:51:14 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 23 Apr 2002 09:51:13 -0700 X-Originating-IP: [63.210.218.230] From: "jyclee" To: Subject: RE:: Crypt::CBC error Date: Tue, 23 Apr 2002 12:56:36 -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 16:51:13.0927 (UTC) FILETIME=[14230970:01C1EAE7] 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 Hrm... I issued those command and received the following error Usage: Crypt::CBC::new(new Crypt::CBC block-cipher) at -e line 2 Is there a apache configuration that I'm not aware of? from all I can tell the tests that came with cbc was passed... why is this error showing? > > > 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 ----- Original Message ----- Sent: Tuesday, April 23, 2002 12:56 PM > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message