php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: valid at 3mail dot adress
New email:
PHP Version: OS:

 

 [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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:32 UTC] kalle@php.net
I'm suspending the reports for BLENC as it doesn't seem to have stalled (looking at both repositories I could find on git.php.net 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 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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC