itinerisltd/gfe-preset
Composer 安装命令:
composer require itinerisltd/gfe-preset
包简介
Utilities for Gravity Forms Encrypted Fields.
README 文档
README
- Goal
- Minimum Requirements
- Installation
- Usage
- Warnings
- FAQ
- Why
GFE_PRESET_WEBSITE_KEYandGFE_PRESET_ENCRYPTION_KEYmust be defined? - Should I reuse
GFE_PRESET_WEBSITE_KEYandGFE_PRESET_ENCRYPTION_KEY? - I have installed this plugin. Does it mean my WordPress site is unhackable?
- Will you add support for older PHP versions?
- It looks awesome. Where can I find some more goodies like this?
- This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?
- Why
- Testing
- Feedback
- Change Log
- Security
- Credits
- License
Goal
By default Gravity Forms Encrypted Fields generate website key automatically on web servers which violates 12-factor principle and makes backing up difficult.
GFE Preset overrides the website key via PHP constants so that the key always in a known state.
Moreover, encrypting with unknown encryption keys means you can't decrypt if disasters happen. Better safe than worry. GFE Preset triggers wp_die if required constants not defined.
Besides, GFE Preset provides similar overrides to:
- CodeCanyon license key
- encryption key (also known as encryption password)
Minimum Requirements
- PHP v7.2
- WordPress v5.0
- Gravity Forms Encrypted Fields v4.4.2
Installation
$ composer require itinerisltd/gfe-preset
Usage
Normal WordPress
Define these 3 constants in wp-config.php:
// Required: define('GFE_PRESET_WEBSITE_KEY', 'aaa'); define('GFE_PRESET_ENCRYPTION_KEY', 'bbb'); // Also kown as **encryption password** // Optional: define('GFE_PRESET_LICENSE_KEY', 'zzz');
Bedrock
Define these 3 constants in config/application.php:
// Required: Config::define('GFE_PRESET_WEBSITE_KEY', 'aaa'); Config::define('GFE_PRESET_ENCRYPTION_KEY', 'bbb'); // Also kown as **encryption password** // Optional: Config::define('GFE_PRESET_LICENSE_KEY', 'zzz');
Warnings
-
You must save Gravity Forms Encrypted Fields setting page whenever:
- installing/activating the plugins
- updating the plugins
- changing the constants
-
You should run "ENCRYPTION TESTING AND VERIFICATION" on the plugin settings page
-
You should backup all the constants
-
You should backup website key and encryption password shown on the plugin settings page
- Without both website key and encryption password, you can't decrypt the data
-
You should practice backing up and restoring the whole WordPress installation from time to time
-
Normal Gravity Forms Security Best Practices still applies
-
Gravity Forms Encrypted Fields backup, verification, usage procedures still apply
- You must read the plugin readme and notices on the plugin setting page in full, and follow the instructions
FAQ
Why GFE_PRESET_WEBSITE_KEY and GFE_PRESET_ENCRYPTION_KEY must be defined?
This is to prevent encrypting with unknown (not backed up) website key and encryption key, which end up with a unrestorable database (data is encrtpyed but you can't decrypt them).
Should I reuse GFE_PRESET_WEBSITE_KEY and GFE_PRESET_ENCRYPTION_KEY?
No!
Each WordPress installation (enviroment) should have its own set of GFE_PRESET_WEBSITE_KEY and GFE_PRESET_ENCRYPTION_KEY, i.e: staging and production servers should use different keys.
I have installed this plugin. Does it mean my WordPress site is unhackable?
No website is unhackable.
To have a secure WordPress site, you have to keep all these up-to-date:
- WordPress core
- PHP
- this plugin
- all other WordPress themes and plugins
- everything on the server
- other security practices
- your mindset
Will you add support for older PHP versions?
Never! This plugin will only works on actively supported PHP versions.
Don't use it on end of life or security fixes only PHP versions.
It looks awesome. Where can I find some more goodies like this?
- Articles on Itineris' blog
- More projects on Itineris' GitHub profile
- More plugins on Itineris' wp.org profile
- Follow @itineris_ltd and @TangRufus on Twitter
- Hire Itineris to build your next awesome site
This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?
Thanks! Glad you like it. It's important to let my boss knows somebody is using this project. Instead of giving reviews on wp.org, consider:
- tweet something good with mentioning @itineris_ltd and @TangRufus
- star this Github repo
- watch this Github repo
- write blog posts
- submit pull requests
- hire Itineris
Testing
# Code style checks.
$ composer style:check
Pull requests without tests will not be accepted!
Feedback
Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.
Change Log
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email hello@itineris.co.uk instead of using the issue tracker.
Credits
GFE Preset is a Itineris Limited project created by Tang Rufus.
Full list of contributors can be found here.
License
GFE Preset is licensed under the MIT License. Please see License File for more information.
itinerisltd/gfe-preset 适用场景与选型建议
itinerisltd/gfe-preset 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30.68k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2019 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「security」 「wordpress」 「encryption」 「wp」 「gravityforms」 「gravity-forms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 itinerisltd/gfe-preset 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 itinerisltd/gfe-preset 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 itinerisltd/gfe-preset 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple PHP class to encrypt a string and decrypt an encrypted string
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Provide a way to secure accesses to all routes of an symfony application.
Encryption with AES-256 and HMAC-SHA256
Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.
High-level cryptographic primitives and security utilities for Maatify systems including password hashing, reversible encryption, HKDF key derivation, and key rotation.
统计信息
- 总下载量: 30.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-13