Download the PHP package diontech/laravel-vault without Composer
On this page you can find all versions of the php package diontech/laravel-vault. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download diontech/laravel-vault
More information about diontech/laravel-vault
Files in diontech/laravel-vault
Package laravel-vault
Short Description Building vaults and decrypted/encryped secrets. Using specfic keys per vault (or per secret if you want to) is implemented. Vaults can be a standalone or related to your app`s models.
License MIT
Informations about the package laravel-vault
about Vault
With Vault, you can create vaults as application standalones or related to a model in your app, for example every user can have personal vaults. Each vault can contain secrets. Instead of using the default decrypt/encrypt functions, Vault will protect secrets using the keys you will choose. For example, an user can define its 'magic secret password' and must provide it every time he wants to have access to a secret. The way you will handle this is dependant to your case.
Vault will handle the key length internally and make sure, the length is 16 or 32, dependant to the cipher you will use (AES-128-CBC = 16, AES-256-CBC = 32). So you can choose the secret key you will want to.
releases / laravel support
- laravel 8: v1.1.x
- laravel 9: v1.2.x
installation
usage
There are now a few new options more now of how to write the code:
or when want a relational based vault:
So vaults are created or loaded (when already exists) when you only type a string.
changing the KeyService hash alogorithm
You can publish the config file - after that, you can change the algo at config/vault.php; default is set to sha512. Supported are listed at https://www.php.net/manual/de/function.hash-hmac-algos.php.