You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Vault component securely stores secrets using pluggable storage backends and encryption.
3
+
The Vault component securely stores secrets using pluggable storage backends and encryption with key rotation and support for additional authenticated data (AAD).
4
4
5
5
## Basic Usage
6
6
@@ -9,7 +9,15 @@ use SonsOfPHP\Component\Vault\Cipher\OpenSSLCipher;
9
9
use SonsOfPHP\Component\Vault\Storage\InMemoryStorage;
10
10
use SonsOfPHP\Component\Vault\Vault;
11
11
12
-
$vault = new Vault(new InMemoryStorage(), new OpenSSLCipher(), 'encryption-key');
13
-
$vault->set('db_password', 'secret');
14
-
$secret = $vault->get('db_password');
12
+
$keys = ['v1' => '32_byte_master_key_example!!'];
13
+
$vault = new Vault(new InMemoryStorage(), new OpenSSLCipher(), $keys, 'v1');
0 commit comments