[dev] Horde_Cipher et al;

Mike Cochrane mike at graftonhall.co.nz
Sat Jul 26 02:36:39 PDT 2003


> ----- Message from davey at php.net ---------
>
> To that end, I have been pointed to [2] and was wondering a few things,
>
> 1) Are they fast enough to actually use? Obviously I don't expect them
> to be as fast as the mcrypt library

The blowfish library has been heavily optimized and is used in Horde where
mcrypt is not available. It's about as quick as i could get it. The other
libraries have a lot of room for improvement, in many cases they bit operations
are done by converting to binary strings manipulating and then converting back
to decimals. Anyone with some bit wise experience should be able to deal to
them.

> 2) Is anyone who actually knows the code, willing to PEARize them? I
> think they would need to be completely seperate entitys
> so no more central Horde_Cipher class which is extended by the cipher
> driver... however, personally I like this way, a unified API
> where possible is always good!

Um, not quite sure what you're after. The classes are completely independant of
horde. There is allready and package.xml file there (called cipher.xml) for the
horde_cipher class. It can be installed like any other pear package and has no
dependancies.

I have a test page here:
http://www.graftonhall.co.nz/packages/
That has all the horde packages generated every 24 hours. The cipher one is
there if you want to play with it. It does need some documation or examples at
least, but otherwise could be released.

- Mike :-)



More information about the dev mailing list