|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-10-18 15:47 UTC] valid at 3mail dot adress
Description:
------------
irhere a not work 3 param. i mean that i cant correct encrypt my file with code (was haven)
Test script:
---------------
for ex
$redistributable_key = blenc_encrypt($source_code, "my_source_encoded.php",'code;);
4 2
$redistributable_key = blenc_encrypt($source_code, "my_source_encoded.php",file_get_contents(ini_get('blenc.key_file')));
or
$redistributable_key = blenc_encrypt($source_code, "my_source_encoded.php",ini_get('blenc.key_file'));
and its not parse err.
i mean that imosible rncrypt file with haven code
or u must correct example 4
encode + decode
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Hello! Sorry for my long answer. The extension is working as well. There's not completed example on php.net. You MUST NOT change the redist key for compile files, because BLENC it's not supported several keys in the key file. Pay attention on these steps: 1. Be sure that blenc.key_file have a CORRECT path to the BLENC key file. It might be something like this: blenc.key_file="C:\PHP\blenc.key_file" It's not needed to create this file by yourself, just specify the folder which must be allowed to write to it. 2. In BLENC key write action your must specify the blenc.key_file option which you specify on first step via init_get (). Here's working and 100% tested example: $content = blenc_encrypt ('file_input.php', 'file_encoded.phpc', md5 ('salt_string')); file_put_contents (ini_get ('blenc.key_file'), $content); Hopes it helps! Cheers, Acuna.