Download the PHP package ohseesoftware/laravel-assert-encrypted without Composer
On this page you can find all versions of the php package ohseesoftware/laravel-assert-encrypted. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ohseesoftware/laravel-assert-encrypted
More information about ohseesoftware/laravel-assert-encrypted
Files in ohseesoftware/laravel-assert-encrypted
Package laravel-assert-encrypted
Short Description Add an assertion to test for encrypted values in your database.
License MIT
Homepage https://github.com/ohseesoftware/laravel-assert-encrypted
Informations about the package laravel-assert-encrypted
Laravel Assert Encrypted
Add an assertion to test for encrypted values in your database.
Install
Usage
Say you have an encrypted value in your database:
It's a bit hard to test the value of secret
in the database because there's randomness in encrypt()
. This means encrypt('value') !== encrypt('value')
.
To get around this, you can use the trait exposed in this package in your tests:
If your values are not serialized before encryption, you can use the assertEncryptedUnserialized
assertion.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Owen Conti
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.