Re: Re: Crypt base class for initial revew

From: Date: Sun, 16 Feb 2003 11:59:34 +0000
Subject: Re: Re: Crypt base class for initial revew
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13372@lists.php.net to get a copy of this message
Hi, Christian Dickmann wrote:
There are three files in the zip, in a directory structure. In the Ciphers folder there is my DES algorithm implemented as a module for the Crypt base class, as well as a skeleton class for others to use as a framework. Check the usage in the comments of crypt.php and give it a whirl. Comments, questions, etc please.
Ok. First of all your Crypt::Crypt can't work. The include is only done of mcrypt extension is loaded. that's a small bug
Then your approach is too specific for DES. Wouldn't work I proposed therefore to make a new subclass for asym. algorithms like RSA because they work a bit different.
with RSA at all. Please see my RSA class http://dickmann.homeunix.org/pear/pear/Crypt_RSA/RSA.php?source
It would be great, If you can provide a Crypt_Asymmetric as subclass of Crypt (if you have time and like to do this), because you better know what is needed for such class. bye, -- ------------------------------- ------------------------------------- Michael Bretterklieber - Michael.Bretterklieber@jawa.at JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200 -------------- privat --------------- A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: michael@bretterklieber.com Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com ------------------------------- ------------------------------------- "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972

« previous php.pear.dev (#13372) next »