Giter Club home page Giter Club logo

php-beast's Introduction


  _____  _    _ _____    ____  ______           _____ _______ 
 |  __ \| |  | |  __ \  |  _ \|  ____|   /\    / ____|__   __|
 | |__) | |__| | |__) | | |_)/| |__     /  \  | (___    | |   
 |  ___/|  __  |  ___/  |  _ ||  __|   / /\ \  \___ \   | |   
 | |    | |  | | |      | |_)\| |____ / ____ \ ____) |  | |   
 |_|    |_|  |_|_|      |____/|______/_/    \_\_____/   |_|   

此模块可以用于商业, 使用DES加密算法加密, 版权归原作者.

使用方法:

修改key.c文件的__authkey加密key, 编译安装, 接着使用beast_encode_file()函数进行加密, 加密后的文件beast模块能自动识别.

编译安装如下:


$ wget https://github.com/liexusong/php-beast/archive/master.zip
$ unzip master.zip
$ cd php-beast-master
$ phpize
$ ./configure
$ sudo make && make install

编译好之后修改php.ini配置文件, 加入配置项: extension=beast.so, 重启php-fpm


  温馨提示: 1) 缓存设置越大, 效率越高
            2) 可以修改key.c文件中的加密key

配置项:


 beast.cache_size = size
 beast.log_file = "path_to_log"

通过测试环境:


 Nginx + Fastcgi + (PHP-5.3.x/PHP-5.2.x)

TODO:

  • 增加opcode缓存

注意:

win32文件夹中是win版本的加密模块, 但是因为没有缓存, 所以效率比较低, 建议使用时不要大量加密文件. 因为本人不太熟识win平台, 所以希望能有win平台的编程高手与本人一起完成win的版本. 有意请联系QQ: 280259971


作者: 列旭松([email protected])

我的著作: http://book.jd.com/11123177.html
定制版本请联系: 280259971
捐赠本项目:

php-beast's People

Contributors

liexusong avatar

Watchers

James Cloos avatar  avatar

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.