From owner-freebsd-questions Mon Apr 22 17:31:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from titus.lastamericanempire.com (dsl081-101-239.den1.dsl.speakeasy.net [64.81.101.239]) by hub.freebsd.org (Postfix) with ESMTP id 9BF8637B420 for ; Mon, 22 Apr 2002 17:31:29 -0700 (PDT) Received: by titus.lastamericanempire.com (Postfix, from userid 1000) id 9F3E120FD5; Mon, 22 Apr 2002 18:31:09 -0600 (MDT) Date: Mon, 22 Apr 2002 18:31:09 -0600 From: Zach Thompson To: freebsd-questions@freebsd.org Subject: Re: crypt::CBC module problems Message-ID: <20020422183109.A55733@lastamericanempire.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <009201c1ea75$1346ba00$b300a8c0@wenk>; from jeff@dsl.ca on Mon, Apr 22, 2002 at 08:15:08PM -0700 X-Mailer: Mutt http://www.mutt.org/ 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 > > 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