Re: Crypt_RC4
| From: | Dave Mertens | Date: | Sun, 10 Apr 2005 00:36:41 +0000 |
| Subject: | Re: Crypt_RC4 | ||
| References: | 1 2 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2705@lists.php.net to get a copy of this message | ||
Arnaud Limbourg wrote:
>Hi,
>
>Dave, are you still around ?
>
>
I'm 'litteraly' still around. The last few months (as of summer 2004)
I've been traveling Europe for my work. As a result of that i don't have
much spare time left.
>Matthew, in two weeks if there are no news we'll assign you as lead of
>the package. About the class name/package issue don't forget that there
>are side issues if you rename it. Liveuser for example loads the class
>file by using the name Crypt_Rc4, if you rename that code will break. I
>would leave it as it is for now.
>
>
About the package naming. Originally the package was named Crypt_Rc4.
Because because the package suddenly raised some issues with the pear
installer i has the renamed the package name to fix the issue (see
http://cvs.php.net/diff.php/pear/Crypt_Rc4/package.xml?r1=1.7&r2=1.8&ty=h&num=10).
Renaming the file would be the world upside down..
>>I was wondering if anyone knew the status of the Crypt_RC4 package.
>>There have been no new releases for around a year or two now, and no CVS
>>commits for about 8 months.
>>
>>There is a few issues with the package. The package is called Crypt_RC4,
>>yet files and class are called Rc4, which you would expect to be RC4. I
>>think all should be the same, so it all should be either Crypt_RC4 or
>>Crypt_Rc4, I think RC4 is more appropriate.
>>
>>Also, there is some inconsistency in how keys are set. The documentation
>>(comments in the files) gives some example code, but it is not correct,
>>and does not work.
>>
>>
Currently there are two(!) versions of crypt_rc4 in cvs. HEAD is target
towards PHP5 which has better method accessors (private,public, etc)
which is important because I've receive some emails from developers
which are trying to set the key in a incorrect way (using methods which
are declared as private (only in comment as php4 doesn't force it).
The PHP4 version is tagged with as a PHP4 branch so also this is covered.
>>The code in CVS is now PHP5 only code instead of PHP4 as the current
>>release it. I don't see any reason at all to make the package require
>>PHP5, there is nothing the PHP5 code does that can't be done in PHP4.
>>This only makes it so fewer people can use the code.
>>
>>
One thing PHP5 can do is really protect private methods and it does have
finally a implementation for properties (setting a key (which is nothing
more that a string) is a variable, not a function). Further i write (and
release) software for the latest versions. I always compare it to a car
manufacturer. Althru it gives support for older models (versions) it
doesn't release new enhancements for these older models. Althru i will
fix the issues for the php4 version, new enhancements will not see the
daylight in the php4 version.. The package isn't working with PHP3 either.
>>Also, the CVS code does not even work, the provided tests fail because
>>the code is broken, and it breaks BC with the current release.
>>
>>
There are indeed some bc breaks, but it make the api much cleaner. As
stated on the pear website BC breaks are allowed in major releases. As I
mentioned before some developers are calling and using private functions
and then email me to tell the code isn't working. Because the php5
accessor statements those issues are fixed. The BC break is also stated
in the source code which is also used for phpdocumentor..
Last time I've checked the code in cvs does work. I have even create a
new unit test (for phpunit2) to test it..
>>There is a lot of improvements in the code in CVS, so I would like to
>>see a new release rolled with some of the improvements in the CVS code
>>(except get rid of the PHP5 dependency), and come up for a solution for
>>the inconsistency in naming (RC4/Rc4). It would also be nice to fix the
>>documentation it provides with a working example.
>>
>>
As i replied earlier to Matthew, i don't mind if someone wants to take
over the package but i want to make sure that person has enough time
(now and over 2 years) to still maintain the code and find itself in my
position where i simply don't have time left to do all things i have to do..
Matthew earlier also said that he had some fixes for some open issues. I
told him that he could apply them to the source code in CVS and based on
that i would decide whether he is the right person the take the role as
lead developer for this package..
>>I have tried contacting the author about this but got no response. I
>>would be willing to fix up these few things and get a new release rolled
>>if it seems necessary. Or if anyone else would like to, that would be
>>great too.
>>
>>
And here we have one of the downsides of email. There's no way to tell
if someone receives a email. Because I never received a reply from
Matthew on my email, I though he didn't want the job..
Because I don't think my spare time will be increased in a few weeks
it's maybe wise that someone else maintains the package. Because we do
the hosting now ourself we don't really need the rc4 package anymore. I
originally wrote the class because our prevous provider refused to
install the mcrypt library. People should only use crypt_rc4 is mcrypt
isn't available.
With regards,
Dave Mertens