arshidkv12 / phpBolt

Best php encoder - free | Encrypt php source code
https://phpbolt.com
225 stars 49 forks source link

Namespace declaration statement has to be the very first statement or after any declare call in the script #4

Open shukla-rohit opened 4 years ago

shukla-rohit commented 4 years ago

Hello,

I am facing one issue, in my file I have namespace, and after encryption with bolt, having line on top. bolt_decrypt( FILE , PHP_BOLT_KEY); return 0;

and later have encrypted code.

so when I am running file, getting compile error.

Description:Namespace declaration statement has to be the very first statement or after any declare call in the script Backtrace-------------------

So problem is that after encryption we are adding bolt_decrypt, and that is creating problem, if having namespace in file. Can you please suggest anything or any solution for this.

Regards,

shukla-rohit commented 4 years ago

I am looking any solution for it. Do you have any solution for it?

allanvb commented 4 years ago

I have the same issue. Any solution on that ?

arshidkv12 commented 4 years ago

Please download new version. Or please feel free to contact me. Skype : arshidkv12

abhayvishwakarma commented 4 years ago

@arshidkv12 Can you add the link of the latest version?

arshidkv12 commented 4 years ago

Feel free to PM Skype: arshidkv12

On Thu, Nov 7, 2019, 4:49 PM abhayvishwakarma notifications@github.com wrote:

@arshidkv12 https://github.com/arshidkv12 Can you add the link of the latest version?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arshidkv12/phpBolt/issues/4?email_source=notifications&email_token=ABT5Y5PLD5XJR75RX3OJ44DQSP2URA5CNFSM4I4KCMB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDMCUCQ#issuecomment-551037450, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT5Y5JIBWQAI3ZZLOVYURDQSP2URANCNFSM4I4KCMBQ .

burakvural93 commented 4 years ago

We have also same issue.Could anyone share latest version of bolt.so and encryptor php file

Edit:Author deleted our all comments related with not finding solution to this problem. @allanvb

arshidkv12 commented 4 years ago

Encrypt controller folder only.

joseques commented 3 years ago

I'm facing the same issue with Codeigniter. Encrypting any file with the namespace at the top seems to break the scripts. I already sent a message on the webpage but I did not have an answer there.

allanvb commented 3 years ago

@joseques the author don't care about this issue. I contacted him and he told me that he will help me only if I pay for that, so I decided to pay for ionCube despite it's more expensive, because If I pay, I want to get a finished and tested product.

sir-reynolds commented 3 years ago

@joseques the author don't care about this issue. I contacted him and he told me that he will help me only if I pay for that, so I decided to pay for ionCube despite it's more expensive, because If I pay, I want to get a finished and tested product.

ioncube is a fool, because I suspect someone working on ioncube created a decode service https://easytoyou.eu/

This service is always up to date about 5-7 months after Ioncube releases the latest version, where all the code that we have encrypted will be able to decrypt using the service.

Then a few months after https://easytoyou.eu/ released the latest version, then 3-5 months later ioncube released the latest version again.

We have to pay again to get the latest version of ioncube so that the code that we encrypt cannot be decrypted.

However, as I mentioned, that after 5-7 months ioncube releases the latest version, then https://easytoyou.eu/ will follow it to release the latest version too.

Then again as I mentioned that after https://easytoyou.eu/ releases the latest version, ioncube will release the latest version after 3-5 months of decoded, and we have to pay again to get the latest version.

f * ck ioncube.

brunoromeo001 commented 2 years ago

Does anyone have the solution?

dipakkolhe commented 2 years ago

Dose anyone have the solution for this issue?

mrmuminov commented 1 year ago

does have solution?

brunoromeo001 commented 1 year ago

Hey guys, the solution for me was to download directly from this repository and not from the website. Hope this helps.

andreescocard commented 1 year ago

Downloaded the encryption script from this repo, now the problem is another: "Parse error: syntax error, unexpected ':', expecting end of file"

Downloading from the website, using php 7.4 TS dll, i got the same error (namespace declaration...)

leehong0115 commented 1 year ago

Hello,

I am facing one issue, in my file I have namespace, and after encryption with bolt, having line on top. bolt_decrypt( FILE , PHP_BOLT_KEY); return 0;

and later have encrypted code.

so when I am running file, getting compile error.

Description:Namespace declaration statement has to be the very first statement or after any declare call in the script Backtrace-------------------

So problem is that after encryption we are adding bolt_decrypt, and that is creating problem, if having namespace in file. Can you please suggest anything or any solution for this.

Regards,

hi have you found the solution for this?

shjy commented 6 months ago

delete string "<?php" ,the bolt_encrypt will add "<?php auto"

$fileContents = File::get(base_path($filePath)); $prepend = "<?php bolt_decrypt( FILE , '$key'); return 0;

!!!##";

    $pattern = '/\<\?php/m';
    preg_match($pattern, $fileContents, $matches);
    if (!empty($matches[0])) {
        $fileContents = preg_replace($pattern, '', $fileContents);
    }
    $cipher = bolt_encrypt($fileContents, $key);
alesf commented 5 months ago

The problem is actually this line:

$cipher = bolt_encrypt( "?> ".$contents, $php_blot_key );

The space after ?> is the culprit.

Change the line to:

$cipher = bolt_encrypt( "?>".$contents, $php_blot_key );

and everything should work.