Re: Proposed new package
| From: | Michael Bretterklieber | Date: | Sat, 15 Feb 2003 17:08:10 +0000 |
| Subject: | Re: Proposed new package | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13336@lists.php.net to get a copy of this message | ||
Hi,
Martin Jansen wrote:
On Sat Feb 15, 2003 at 11:2837AM +0100, Lorenzo Alberton wrote:+1 for the idea. BTW: its not enough to be able to change the alorithm, it should be also possible to choose the mode (ECB, CBC, OFB, ...). Each algorithm can work in ECB,CBC,OFB,... mode. I like the way like Tim implemented it, because if mcrypt is available he uses mcrypt (wich is much more faster, because its written in C, but currently not available under Windoze) and not his PHP-code. Maybe we should start with a Crypt prototype? Maybe this hierarchy would be good: Crypt Crypt_DES Crypt_3DES Crypt_Blowfish where Crypt is an abstract class wich provides a skeleton for "real" Crypt classes. 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 1972I was wondering... since there are some crypto classes already, shouldn't we build a wrapper to access them all with a common API (limited to what is possible, of course!)? I'm thinking about something like: $mycrypt = new Crypto_Wrapper(array('algorithm' =>'TRIPLEDES'));