Download the PHP package cbenjafield/laravel-password-manager without Composer
On this page you can find all versions of the php package cbenjafield/laravel-password-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cbenjafield/laravel-password-manager
More information about cbenjafield/laravel-password-manager
Files in cbenjafield/laravel-password-manager
Package laravel-password-manager
Short Description A simple password manager package for Laravel.
License MIT
Homepage https://github.com/cbenjafield/laravel-password-manager
Informations about the package laravel-password-manager
Laravel Password Manager
A really simple Laravel package to encrypt and decrypt passwords in storage.
Installation
Composer:
After installation, publish the config:
Add a 16 character long key to your .env file. Also, if you would like to change the passwords table name, you may specify that too.
If you would like to generate a key for the .env file, you can use the following Artisan command:
You can then copy the generated key to your .env file.
Then, publish the database migrations:
Run the migrations:
Usage
Encrypting a password
You can make use of dependency injection:
Or you can use the facade:
Decrypting a password
To decrypt a password, you need to retrieve the dynamic key used to encrypt it in the first place.
Caveats
This package doesn't handle authentication or middlewares involved in protecting the encryption or decryption of passwords - you will need to handle this yourself.
Licence
The MIT Licence (MIT). Please refer to Licence File for more information.