jeffreyvanrossum/wp-simple-encryption
最新稳定版本:0.1.0
Composer 安装命令:
composer require jeffreyvanrossum/wp-simple-encryption
包简介
Package to allow for simple string encryption and decryption.
README 文档
README
WP Simple Encryption
A simple package to encrypt and decrypt strings in WordPress.
Installation
composer require jeffreyvanrossum/wp-simple-encryption
How it works
This package attempts to write a constant to your site's wp-config.php where the secret key is stored.
You may define the name of this constant when instantiating the WPSimpleEncryption class.
This package utilizes php-encryption for the encryption and decryption.
Usage
use Jeffreyvr\WPSimpleEncryption\WPSimpleEncryption; $wp_simple_encryption = new WPSimpleEncryption('YOUR_SECRET_KEY_CONSTANT'); $wp_simple_encryption->encrypt('some unencrypted string'); $wp_simple_encryption->decrypt('some encrypted string');
Contributors
License
MIT. Please see the License File for more information.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-12