aoepeople/vault
Composer 安装命令:
composer require aoepeople/vault
包简介
Vault
README 文档
README
Simple vault that allows encrypting and decrypting files based on an encryption key and a mac from environment variables.
Author: Fabrizio Branca
Configuration
export VAULT_ENCRYPTION_KEY=<INSERT_YOUR_ENCRYPTION_KEY>
export VAULT_MAC_KEY=<INSERT_YOU_MAC_KEY>
Key Generation
see https://github.com/archwisp/PHPEncryptData
Commands
vault:encrypt <plainTextFilePath> <encryptedFilePath>
vault:decrypt [--force] <encryptedFilePath> <plainTextFilePath>
PHP
Example
$plainText = \Vault\Vault::open('vault/config.yml.encrypted');
$config = \Symfony\Component\Yaml\Yaml::parse($plainText);
// and check out \Vault\Vault's other methods...
统计信息
- 总下载量: 7.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 4
其他信息
- 授权协议: Unknown
- 更新时间: 2016-06-20