From owner-freebsd-questions Wed Jan 3 21:44:11 2001 From owner-freebsd-questions@FreeBSD.ORG Wed Jan 3 21:44:07 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bruiser.netorbit.com (unknown [209.15.87.170]) by hub.freebsd.org (Postfix) with ESMTP id C7DF237B400 for ; Wed, 3 Jan 2001 21:44:06 -0800 (PST) Received: from bruiser (unknown [192.168.70.51]) by bruiser.netorbit.com (Postfix) with SMTP id 8AC3D9885; Wed, 3 Jan 2001 23:51:19 -0600 (CST) From: "R.Munden" To: "Tim McMillen" , "freebsd-questions@FreeBSD. ORG" Subject: RE: We now have Rijndael! Date: Wed, 3 Jan 2001 23:27:48 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <01010400203301.09697@tim.elnsng1.mi.home.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Tim McMillen > Sent: Wednesday, January 03, 2001 11:21 PM > To: R.Munden; freebsd-questions@FreeBSD. ORG > Subject: Re: We now have Rijndael! > > > > Thank you very much so far. > > On Wednesday January 03, 2001 23:18, R.Munden wrote: > > you might install it then 'perldoc Rijndael' > > That didn't find anything. > > > > or maybe check CPAN.org, list by module and look at the readme > > I found it there at > http://cpan.valueclick.com/authors/id/D/DI/DIDO/Crypt-Rijndael-0.01.readme > > and eventually found it locally. I can do man 3 Crypt::Rijndael > and it finds it (the same page) but > %man -k Rijndael > Rijndael: nothing appropriate > > Oh, well I can read it but it doesn't tell me, the perl idiot, > anything useful. > It says: > SYNOPSIS > use Crypt::Rijndael; > > # keysize() is 32, but 24 and 16 are also possible > # blocksize() is 16 > > $cipher = new Crypt::Rijndael "a" x 32, Crypt::Rijndael::MODE_CBC; ^^^^^^^ ^^^^^^^^ creates new object it's probably making key with 32 a's > > $crypted = $cipher->encrypt($plaintext); ^^^^^^^^^^^^^^^^^^ here you are encrypting whatever is in $plaintext > # - OR - > $plaintext = $cipher->decrypt($crypted); ^^^^^^^^^^^ or moving back to readable form > > What do I do with that? Thanks again, sorry for the dumb questions, So, try to run this (after you've saved it as crypttest) ./crypttest someplaintexthere #!/usr/bin/perl #--file crypttest #--Disclaimer I've never looked at Crypt/Rijndael before; this may/may not work use Crypt::Rijndael; $plaintext = shift @_; # keysize() is 32, but 24 and 16 are also possible # blocksize() is 16 $cipher = new Crypt::Rijndael "a" x 32, Crypt::Rijndael::MODE_CBC;> $crypted = $cipher->encrypt($plaintext); print "\nCrypted text is: $crypted\n"; exit; > Tim > > > > > > > -----Original Message----- > > > From: owner-freebsd-questions@FreeBSD.ORG > > > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Tim > > > McMillen Sent: Wednesday, January 03, 2001 10:23 PM > > > To: freebsd-questions@freebsd.org > > > Subject: We now have Rijndael! > > > > > > > > > > > > Wow it looks like the ports committers have been busy. There are > > > now implementations of Rijndael, Twofish, and others along with > > > Idea (already there) as perl modules. Rijndael is the new AES > > > standard in case anybody missed that. It's at > > > /usr/ports/security/p5-Crypt-Rijndael and the Makefile date > > > shows 2001/01/03 23:26:25 Though at my time it's not even there > > > yet. Must be in Europe. > > > Ok now here's the really dumb question. How do I use them? I've > > > never used perl beyond creating the obligatory hello world script. > > > I want to do the basic plaintext->cyphertext->plaintext path. > > > Any help out there? I built the port, but don't know how > > > to use it. > > > I feel dumb, but as I said, never used perl or the p5 modules in > > > the ports. > > > Thanks. > > > > > > Tim > > > > > > > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message