typisttech/wp-password-argon-two-env
最新稳定版本:0.2.1
Composer 安装命令:
composer require typisttech/wp-password-argon-two-env
包简介
Convert environment variables to WP Password Argon Two required constants.
README 文档
README
Caution
WP Password Argon Two has been abandoned. Hence, WP Password Argon Two Env as well.
If you want to maintain a fork of WP Password Argon Two, read this blog post (Wayback Machine snaptshot). Otherwise, use roots/wp-password-bcrypt.
WP Password Argon Two Env
Convert environment variables to WP Password Argon Two required constants.
- Goal
- Installation
- Usage
- Frequently Asked Questions
- Support!
- Developing
- Feedback
- Change Log
- Security
- Credits
- License
Goal
Defining WP Password Argon Two required constants in application code violates 12-factor principle.
This package allows you configure WP Password Argon Two with environment variables.
Installation
➜ composer require typisttech/wp-password-argon-two-env
In wp-config.php or Bedrock's config/application.php:
TypistTech\WPPasswordArgonTwo\Env\Converter::run();
Usage
On your server, define these environment variables:
WP_PASSWORD_ARGON_TWO_PEPPERWP_PASSWORD_ARGON_TWO_OPTION_MEMORY_COSTWP_PASSWORD_ARGON_TWO_OPTION_TIME_COSTWP_PASSWORD_ARGON_TWO_OPTION_THREADSWP_PASSWORD_ARGON_TWO_FALLBACK_PEPPER_<integer>
Only WP_PASSWORD_ARGON_TWO_PEPPER is required. Others are optional.
Fallback peppers must start with 1 and consecutive. For example:
WP_PASSWORD_ARGON_TWO_FALLBACK_PEPPER_1WP_PASSWORD_ARGON_TWO_FALLBACK_PEPPER_2WP_PASSWORD_ARGON_TWO_FALLBACK_PEPPER_3
Trellis
Trellis users could add environment variables under wordpress_sites:
# group_vars/<env>/vault.yml vault_wordpress_sites: example.com: env: wp_password_argon_two_pepper: 'your_long_and_random_pepper' wp_password_argon_two_fallback_pepper_1: 'your_second_oldest_pepper' wp_password_argon_two_fallback_pepper_2: 'your_oldest_pepper' # group_vars/<env>/wordpress_sites.yml wordpress_sites: example.com: env: wp_password_argon_two_option_memory_cost: 131072 # 128 Mb wp_password_argon_two_option_time_cost: 4 wp_password_argon_two_option_threads: 3
Encrypting vault.yml files is important! Learn more on Trellis docs.
Frequently Asked Questions
Why I got InsecureConfigException (Pepper should not be empty)?
Because... pepper should not be empty.
WP_PASSWORD_ARGON_TWO_PEPPER environment variable isn't defined properly.
Does it work when WP Password Argon Two installed as a must-use plugin?
No.
It looks awesome. Where can I find some more goodies like this?
- Articles on Typist Tech's blog
- Tang Rufus' WordPress plugins on wp.org
- More projects on Typist Tech's GitHub profile
- Stay tuned on Typist Tech's newsletter
- Follow Tang Rufus' Twitter account
Support!
Donate
Love WP Password Argon Two Env? Help me maintain it, a donation here can help with it.
Why don't you hire me?
Ready to take freelance WordPress jobs. Contact me via the contact form here or, via email info@typist.tech
Want to help in other way? Want to be a sponsor?
Contact: Tang Rufus
Developing
To set up a developer workable version you should run these commands:
$ composer create-project --keep-vcs --no-install typisttech/wp-password-argon-two-env:dev-master
$ cd wp-password-argon-two-env
$ composer install
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.
Security
If you discover any security related issues, please email wp-password-argon-two-env@typist.tech instead of using the issue tracker.
Credits
WP Password Argon Two Env is a Typist Tech project and maintained by Tang Rufus, freelance developer for hire.
Full list of contributors can be found here.
License
The MIT License (MIT). Please see License File for more information.
typisttech/wp-password-argon-two-env 适用场景与选型建议
typisttech/wp-password-argon-two-env 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 361 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「password」 「hashing」 「wp」 「env」 「hmac」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 typisttech/wp-password-argon-two-env 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 typisttech/wp-password-argon-two-env 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 typisttech/wp-password-argon-two-env 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A hashing library that will generate and add hashes to your laravel models.
Simple bundle for adding encryption type to Doctrine
The PHP class PasswordGenerator serves as a password generator to create memorable passwords like the keychain of macOS ≤ 10.14 did.
Laravel middleware to restrict a site or specific routes using HTTP basic authentication
High-level cryptographic primitives and security utilities for Maatify systems including password hashing, reversible encryption, HKDF key derivation, and key rotation.
A library for reading KeePass 2.x databases
统计信息
- 总下载量: 361
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-04