Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 8593

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Introduction</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.blenc.html">BLENC</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="blenc.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.blenc.html">BLENC</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.blenc" class="preface">
  <h1 class="title">Introduction</h1>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This extension is
<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this extension including
the names of its functions and any other documentation surrounding this
extension may change without notice in a future release of PHP.
This extension should be used at your own risk.</p></div>
  <p class="para">
   BLENC is a PHP source script protector that:
   <ul class="simplelist">
    <li class="member">
     Encodes your source code with the blowfish algorithm.
    </li>
    <li class="member">
     Allows transparent decryption and execution of PHP scripts previously
     encoded with BLENC.
    </li>
   </ul>
  </p>
  <p class="para">
   BLENC is an extension which hooks into the Zend Engine, allowing for
   transparent encryption and execution of PHP scripts using the blowfish
   algorithm. It is not designed for complete security (it is still possible to
   disassemble the script into op codes using a package such as XDebug), however
   it does keep people out of your code and make reverse engineering difficult.
  </p>
  <p class="para">
   In order to protect your PHP script you must encrypt each script with
    <span class="function"><a href="function.blenc-encrypt.html" class="function">blenc_encrypt()</a></span> function. After you can include the
   encoded script like the example below:
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">/*&nbsp;PHP&nbsp;script&nbsp;encoded&nbsp;with&nbsp;BLENC&nbsp;*/<br /></span><span style="color: #0000BB">$my_source_encoded&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'my_source_encoded.phpe'</span><span style="color: #007700">;<br /><br />include(</span><span style="color: #0000BB">$my_source_encoded</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

  </p>
  <p class="para">
   BLENC supports also expiration time for the module. So, if you want deploy
   your source code with a expiration time, you have to compile the extension
   modifying the header file related to encryption and expiration time. Please
   see configuration section for further informations.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.blenc.html">BLENC</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="blenc.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.blenc.html">BLENC</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>