aoepeople / vault
Vault
Installs: 7 373
Dependents: 0
Suggesters: 4
Security: 0
Stars: 1
Watchers: 26
Forks: 1
Open Issues: 0
Requires
This package is not auto-updated.
Last update: 2024-12-21 20:36:08 UTC
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...