laravel php代码加密,Laravel Html 加密

Laravel Html Encrypt

68747470733a2f2f706f7365722e707567782e6f72672f7068702d6a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f762f737461626c6568747470733a2f2f706f7365722e707567782e6f72672f7068702d6a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f646f776e6c6f616473

Installation

You can install the package via composer:

composer require php-junior/laravel-html-encrypt

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

PhpJunior\LaravelHtmlEncrypt\LaravelHtmlEncryptServiceProvider::class,

And

php artisan vendor:publish --provider="PhpJunior\LaravelHtmlEncrypt\LaravelHtmlEncryptServiceProvider"

This is the contents of the published config file:

return [

'encrypt' => env('HTML_ENCRYPT', true),

'disable_right_click' => true,

'disable_ctrl_and_F12_key' => true,

];

HTML Encryption?

One major reason for the success of the World Wide Web is undeniably the openness of HTML. HTML files are basically plain text documents, meaning software applications and human users can easily create, read, and update web pages. The open nature of HTML not only allows users to edit websites with nothing more than a simple text editor, it also enables search engines to spider the web and forms the basis for a wide range of web-related applications for any platform you can imagine.

However, as a web designer or website owner you may encounter situations in which you feel a need for protecting your HTML, CSS or JavaScript code from being viewed and reused .

How It Works

HTML encryption/decryption techniques are based on JavaScript. The encrypted HTML code, which is saved inside the HTML document, is decrypted at runtime through JavaScript and written directly into the browser window using the document.write(…) function. This ensures that any JavaScript-enabled web browser can load and display the pages without additional components or plugins.

License

The MIT License (MIT). Please see License File for more information.

Support on Beerpay

Hey dude! Help me out for a couple of

🍻!

68747470733a2f2f626565727061792e696f2f5048504a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f62616467652e7376673f7374796c653d626565722d73717561726568747470733a2f2f626565727061792e696f2f5048504a756e696f722f6c61726176656c2d68746d6c2d656e63727970742f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值