Giter Club home page Giter Club logo

phpbolt's Introduction

phpBolt - Best php encoder

🌟🌟🌟 Please give a star on GitHub :) 🌟🌟🌟

Please check https://packagist.org/packages/phpbolt/encrypt

Laravel https://github.com/SiavashBamshadnia/Laravel-Source-Encrypter

First, install bolt.so then you can encrypt php source code with encryption.php file.

phpBolt.com

PHP 7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3

Please try it on Linux or Mac.

Email testing tool - SMTP Sandbox - MailMug.net

How to install bolt.so?

Download bolt.so file from https://phpbolt.com/ website. Then find the extension directory. You can find the extension directory by phpinfo() function. Then add extension=bolt.so in php.ini file and restart your server.

How to Encrypt php source code? Please check https://phpbolt.com/how-to-encrypt-php-source-code/

phpbolt's People

Contributors

arshidkv12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpbolt's Issues

Support for window x86

I can't find a php_bolt.dll for x86 systems just for window x64. How can I please go about this?

Codeigniter encrypt Controller file

I'm using Codeigniter like PHP framework.
And I try to encrypt some files to Controllers folders.
The files are encrypted correctly, but when I run the controllers, they return a white page and I haven't error to log file.

Code not loading

After encrypting, I loaded my files to my IIS but it's giving error 500 page not found

Required support for php 7.4

Hi team,
I am using laravel 7.26.1 with php 7.4 but i didn't find bolt.so file for php 7.4 for linux 64 arc.
What i can do to resolve this.

bolt.so for php 7.4 with ZTS enabled ?

php compiled with

'./configure' '--prefix=/etc/php7' '--with-bz2' '--with-zlib' '--with-zip' '--disable-cgi' '--enable-soap' '--enable-intl' '--with-openssl' '--with-readline' '--with-curl' '--enable-ftp' '--enable-mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--enable-sockets' '--enable-pcntl' '--with-pspell' '--with-enchant' '--with-gettext' '--enable-gd' '--enable-exif' '--with-jpeg' '--with-freetype' '--with-xsl' '--enable-bcmath' '--enable-mbstring' '--enable-calendar' '--enable-simplexml' '--enable-json' '--enable-session' '--enable-xml' '--enable-opcache' '--with-config-file-path=/etc/php7/cli' '--with-config-file-scan-dir=/etc/php7/etc' '--enable-cli' '--enable-maintainer-zts' '--with-tsrm-pthreads' '--enable-fpm' '--with-apxs2=/usr/bin/apxs' '--with-fpm-user=www-data' '--with-fpm-group=www-data'

--

error:

PHP Startup: Unable to load dynamic library 'bolt.so' (tried: /etc/php7/lib/php/extensions/no-debug-zts-20190902/bolt.so (/etc/php7/lib/php/extensions/no-debug-zts-20190902/bolt.so: undefined symbol: compiler_globals), /etc/php7/lib/php/extensions/no-debug-zts-20190902/bolt.so.so (/etc/php7/lib/php/extensions/no-debug-zts-20190902/bolt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

@arshidkv12 Please, can you compile .so also for this environment (ts) ?

require encrypted files that returns string/array/.. value returns 0 or 1

$dir = '/some/path';
$filepath = "$dir/src/file.php";
$destpath = "$dir/dst/file.php";

$contents = '<?php return ["old" => "x", "new" => "y"];';
file_put_contents($filepath, $contents);

// Encrypting $filepath using phpbolt into the $destpath ..

var_dump(require $filepath);
// returns : array(2) { ["old"]=> string(1) "x" ["new"]=> string(1) "y" }

var_dump(require $destpath);
// returns int(0) or int(1)

Note that it happens whether return 0; is added to prepend string or not. In:

$preppand = '<?php bolt_decrypt( __FILE__ , PHP_BOLT_KEY); return 0;
##!!!##';

Php 8.2

Hello.

Can you pls compile extension for php 8.2 for windows? It'll be very usefull cuz php 7.4 is a bit outdated for development and php 8+ is more faster in all.

bolt.so files

Hi

I can't find anywhere how to download bolt.so files
They are not on the site.
Are they deleted?

php thrift server do not response the return

Hello,

I have php thrift server and some RESTFul API that response to other client.

The RESTful API do not have issue, but the thrift server always response the "blank" output.

I was motified the encrypt example that email provided to fit my need.

After hours debug, I just found out there is a space in line 44 that cause the problem.

image

Therefore, I remove that space everything is ok now.

Thank you for your hardwork.

Use of undefined constant PHP_BOLT_KEY - assumed 'PHP_BOLT_KEY'

The following error in php7.2 and 7.3 and I am using bolt.so version 1.0.2

Warning: Use of undefined constant PHP_BOLT_KEY - assumed 'PHP_BOLT_KEY' (this will throw an Error in a future version of PHP) in index.php on line 1

Parse error: syntax error, unexpected end of file inindex.php on line 1

Not available

Subject: Not available
Environment: PHP7.3.5
Why?PHP warning:
Warning: Unexpected character in input: 'οΏ½' (ASCII=3) state=0 in

Call to undefined function bolt_encrypt()

Thank you for smart tool, but its not working when I am trying to encrypt through bolt_encrypt,

I checked for 2 different machine.

PHP Fatal error: Uncaught Error: Call to undefined function bolt_encrypt() in /srv/www/vhosts//phpBolt-encrypt/phpBolt-encrypt/index.php:44
Stack trace:
#0 {main}
thrown in /srv/www/vhosts/
/phpBolt-encrypt/phpBolt-encrypt/index.php on line 44

secret key?

this is our encrypted example:

define('PHP_BOLT_KEY', 'kyc7fh');
bolt_decrypt( FILE , PHP_BOLT_KEY); return 0;
##!!!##i4psiIu8tLxssa+0u2xztLG4uLtsw7u+uLBzh2w=

The encryption.php
generates just this
bolt_decrypt( FILE , PHP_BOLT_KEY); return 0;
##!!!##i4psiIu8tLxssa+0u2xztLG4uLtsw7u+uLBzh2w=

Where does it get the defined key from?
And when this key is not secret, everyone with the bolt.so can decrypt it, right?
Or is there any way do hide the key?

Error with XLSXWriter

I have implmented phpBolt few weks ago, and I found every ok except "XLSXWriter", a php page without phpBolt able to export an excel file and readalbe, but same php page with phpBolt also able to export an excel file but unable to open with error.

Undefined function bolt errors.

I have downloaded the code and your loader, added the extension code in php.ini file but still it gives me the following issue for both bolt_decrypt() and bolt_encrypt().

Fatal error: Uncaught Error: Call to undefined function bolt_decrypt() in C:\xampp\htdocs\phpBolt-encrypt\encrypted\hello\index.php:6 Stack trace: #0 {main} thrown in C:\xampp\htdocs\phpBolt-encrypt\encrypted\hello\index.php on line 6

bolt is adding a blank space always as first character

I am having an issue when always, the first line of my code is a blank space
example:

My first line printing is. '#EXTM3U'
but, after encrypt with bolt, is printing ' #EXTM3U'

do you know why or what can be moved to avoid that space? that space is enough for my code to crash.

thanks!

Issue with extension in PHP 7.1

I am getting an error when I load the .so file
The error I am getting like,
PHP Warning: PHP Startup: Unable to load dynamic library '/Users/username/Downloads/phpBolt-extension-1.0.1/mac-64/mac-7.1/bolt.so' - dlopen(/Users/username/Downloads/phpBolt-extension-1.0.1/mac-64/mac-7.1/bolt.so, 0x0009): code signature in (/Users/username/Downloads/phpBolt-extension-1.0.1/mac-64/mac-7.1/bolt.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. in Unknown on line 0

Error

Warning: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\alkes-dev\application\config\constants.php:1) in ...\system\core\Common.php on line 570
Your config file does not appear to be formatted correctly.

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

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,

Custom Error Messages

Make it possible to set custom error messages when the encrypted file (encrypted string) voluntary edited, or mismatched encryption key.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.