Date: Wed, 3 Jan 2001 23:27:48 -0600 From: "R.Munden" <orbitmaster@netorbit.com> To: "Tim McMillen" <timcm@umich.edu>, "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG> Subject: RE: We now have Rijndael! Message-ID: <NDBBLMNJCLEHDNNGEDMOGEIAEKAA.orbitmaster@netorbit.com> In-Reply-To: <01010400203301.09697@tim.elnsng1.mi.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBLMNJCLEHDNNGEDMOGEIAEKAA.orbitmaster>