php - Usage of Blenc extension of Apache -


i'm bit confused while using blenc v1.1.4b in apache 2.2 on ubuntu 12.04 php 5.3.10. tutorial online, have encrypt php scripts using key file. use following commands encrypt php scripts:

export blencode='php -f /path/to/blenc-1.1.4b/tools/blencode.php' $blencode plain.php 

the script will:

  1. create 32-character blowfish unencrypted key
  2. create 44-character redistributable key file in same directory, named key_file.blenc
  3. create backup directory save original plain.php
  4. convert plain.php encrypted version plain.phpenc
  5. create symlink named plain.php , link plain.phpenc

it returns:

fatal error: blenc_compile: validation of script '/path/to/plain.php' failed, cannot execute. in unknown on line 0

seems failed. copy contents of key_file.blenc /usr/local/etc/blenckeys (assume have rights write file):

cat key_file.blenc > /usr/local/etc/blenckeys 

reload browser, still fails. create .htaccess define key is:

php_value blenc.keyfile /usr/local/blenc/blenckeys 

reload browser again. success! php page starts load. other pages, repeat command, such as:

$blencode second_page.php cat key_file.blenc > /usr/local/etc/blenckeys 

last, remove or move backup directory , key_file.blenc.

my questions are:

  1. do have save blowfish unencrypted key?
  2. how can in batch , encrypt files once updated (i.e. how manage files while using blenc)?
  3. should in local computer or should run @ web server?
  4. since blenc not require <?php , ?> , removing tags quite troublesome, workarounds blenc can support php tags?


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -