|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73339 unable
Submitted: 2016-10-18 15:47 UTC Modified: 2017-01-10 08:32 UTC
From: valid at 3mail dot adress Assigned:
Status: Suspended Package: BLENC (PECL)
PHP Version: Next Major Version OS: win7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
3 + 23 = ?
Subscribe to this entry?

 [2016-10-18 15:47 UTC] valid at 3mail dot adress
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')));
$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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-10 05:09 UTC] acuna dot personal at gmail dot com
What message do you have?
 [2017-01-10 08:32 UTC]
-Status: Open +Status: Suspended
 [2017-01-10 08:32 UTC]
I'm suspending the reports for BLENC as it doesn't seem to have stalled (looking at both repositories I could find on and github) and it does not seem compatible with any currently supported version of PHP either. Please unsuspend in case someone takes over this extension
 [2017-01-12 21:42 UTC] acuna dot personal at gmail dot com
Hello! Sorry for my long answer. The extension is working as well. There's not completed example on 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:


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.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 04:01:27 2023 UTC