title: How to use BLENC in PHP?
body: <p>I have a testcode.php file need to encode:</p>
  
  <pre><code>&lt;?php
      $hello = "Hello World!";
  ?&gt;
  </code></pre>
  
  <p>And I created file encode.php to encrypt and test that file:</p>
  
  <pre><code>&lt;?php
      /* read the PHP source code */
      $source_code = file_get_contents("testcode.php");
  
      /* create the encrypted version */
      $redistributable_key = blenc_encrypt($source_code, "encrypt.php");
  
      /* read which is the key_file */
      $key_file = ini_get('blenc.key_file');
  
      /* save the redistributable key */
      file_put_contents($key_file, $redistributable_key, FILE_APPEND);
  
      include 'encrypt.php';
      echo $hello;
  ?&gt;
  </code></pre>
  
  <p>but I recevied these errors when I ran encode.php:</p>
  
  <blockquote>
    <p>Warning: blenc_compile: Validation of script 'encrypt.php' failed.
    MD5_FILE: 910e6a45f806ba3dc42830839971cb53
    MD5_CALC: c38a6b2f389267a272ea656073a463ed in
    C:\xampp\htdocs\PHPEncode\encode.php on line 14</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>Fatal error: blenc_compile: Validation of script 'encrypt.php' failed,
    cannot execute. in C:\xampp\htdocs\PHPEncode\encode.php on line 14</p>
  </blockquote>
  
  <p>Help me fix it, thank you! :)</p>