aoepeople/vault

There is no license information available for the latest version (1.0.3) of this package.

Vault

1.0.3 2016-04-01 22:13 UTC

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...