-
when ord($pwd[$i % $pwd_length]) empty,
$key[$i] will still add.
But in C key empty will be abort.
So,I change it.
--
$KeyIntArr = array();
for($i = 0; $i < $pwd_length; $i++)
{
$check=0;
$check=ord($pwd[$i % $pwd_length]);
if(!empty($check))
{
$KeyIntArr[]=ord($pwd[$i % $pwd_length]);
}
}
#print_r($KeyIntArr);...
2008-10-06 02:08:00 UTC by nobody
-
mukul committed patchset 9 of module rc4crypt to the RC4 Crypt CVS repository, changing 1 files.
2006-03-10 05:50:40 UTC by mukul
-
mukul committed patchset 8 of module rc4crypt to the RC4 Crypt CVS repository, changing 1 files.
2006-03-10 05:49:58 UTC by mukul
-
mukul committed patchset 7 of module rc4crypt to the RC4 Crypt CVS repository, changing 1 files.
2006-03-10 05:49:32 UTC by mukul
-
mukul committed patchset 6 of module rc4crypt to the RC4 Crypt CVS repository, changing 1 files.
2006-03-10 05:48:39 UTC by mukul
-
mukul committed patchset 5 of module rc4crypt to the RC4 Crypt CVS repository, changing 1 files.
2006-03-10 05:47:24 UTC by mukul
-
mukul committed patchset 4 of module rc4crypt to the RC4 Crypt CVS repository, changing 1 files.
2006-03-10 02:12:49 UTC by mukul
-
mukul committed patchset 3 of module rc4crypt to the RC4 Crypt CVS repository, changing 1 files.
2006-03-10 01:18:38 UTC by mukul
-
I looked briefly at the source and concluded that the implementation is in need of improvement because it is very "light". The class encapsulates only one useful function: encrypt(). The other function, decrypt(), calls encrypt() as one might expect with a symmetrical algorithm.
Unfortunately, each invocation of encrypt() results in a "fresh" initialization of the key...
2005-02-09 03:29:23 UTC by null_pointer
-
mukul committed patchset 2 of module rc4crypt to the RC4 Crypt CVS repository, changing 5 files.
2004-05-07 08:10:24 UTC by mukul