[[howto:blenc]]
 

Quick blenc script

Download: php_blenc.dll for PHP 5.0

Home Page: http://www.coggeshall.org/oss/blenc/

Test script :

<?
/*
 php.ini:
	extension = php_blenc.dll
	[OPT] blenc.key_file = "c:\local\php-bin\blenc_keys"
 
test.php
	<?="Hello people !\n";? >
*/
 
$key_file= getcwd()."\blenc_keys_test.dat";
ini_set('blenc.key_file', $key_file);
 
$file= 'test.php';
$encoded= $file.'.enc';
 
$script= file_get_contents($file);
 
$key= blenc_encrypt($script, $encoded);
 
file_put_contents($key_file, $key."\n");
 
echo "Try to execute ...\n";
system("php -d blenc.key_file=$key_file $encoded");
 
unlink($encoded);
unlink($key_file);
?>
 
  howto/blenc.txt · Last modified: 2005/01/18 11:22
 
Recent changes RSS feed Powered by PHP Driven by DokuWiki