Source for file crypt.inc.php
Documentation is available at crypt.inc.php
// Session Encryption by Ari Kuorikoski <ari.kuorikoski@finebyte.com>
function keyED($txt,$encrypt_key)
$encrypt_key =
md5($encrypt_key);
for ($i=
0;$i<
strlen($txt);$i++
){
if ($ctr==
strlen($encrypt_key)) $ctr=
0;
for ($i=
0;$i<
strlen($txt);$i++
)
if ($ctr==
strlen($encrypt_key)) $ctr=
0;
$tmp.=
substr($encrypt_key,$ctr,1) .
for ($i=
0;$i<
strlen($txt);$i++
){
$tmp.=
(substr($txt,$i,1) ^
$md5);
$randnumber =
rand(48,120);
while (($randnumber >=
58 &&
$randnumber <=
64) ||
($randnumber >=
91 &&
$randnumber <=
96))
$randnumber =
rand(48,120);
$randomPassword .=
chr($randnumber);
function keyED($txt,$encrypt_key)
$encrypt_key =
sha1($encrypt_key);
for ($i=
0;$i<
strlen($txt);$i++
){
if ($ctr==
strlen($encrypt_key)) $ctr=
0;
for ($i=
0;$i<
strlen($txt);$i++
)
if ($ctr==
strlen($encrypt_key)) $ctr=
0;
$tmp.=
substr($encrypt_key,$ctr,1) .
for ($i=
0;$i<
strlen($txt);$i++
){
$tmp.=
(substr($txt,$i,1) ^
$sha1);
$randnumber =
rand(48,120);
while (($randnumber >=
58 &&
$randnumber <=
64) ||
($randnumber >=
91 &&
$randnumber <=
96))
$randnumber =
rand(48,120);
$randomPassword .=
chr($randnumber);
Documentation generated on Sun, 09 Mar 2008 23:51:20 -0300 by phpDocumentor 1.4.0