Re: Encryption & Decryption script
- From: The Hajj <hajji.himself@xxxxxxxxx>
- Date: Tue, 30 Sep 2008 06:54:41 -0700 (PDT)
could try:
while(!feof($fp_r)) {
$r = fread($fp_r,65536);
if (is_binary($r)) {
$binArray = split('[0-1]{8}',$r); //or use \d{8}
$r = '';
foreach ($binArray as $value) {
$r .= bindec($value);
}
//Could use array_walk as well
for($i = 0; $i < strlen($r); $i++) {
$foo[$i] = $r[$i] ^ $key[$k];
if($k==sizeof($key))
$k =0;
$k++;
} .....
.
- References:
- Encryption & Decryption script
- From: Betikci Boris
- Encryption & Decryption script
- Prev by Date: Re: Encryption & Decryption script
- Next by Date: control to browse and select local directory?
- Previous by thread: Re: Encryption & Decryption script
- Next by thread: Re: Encryption & Decryption script
- Index(es):