ryanwinchester / encryption-compat by ryanwinchester

Encryption Service Provider for Laravel < 5.1 for PHP 7.1 compatibility
26
1
3
Package Data
Maintainer Username: ryanwinchester
Maintainer Contact: code@ryanwinchester.ca (Ryan Winchester)
Package Create Date: 2017-02-20
Package Last Update: 2017-02-22
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-11 15:12:17
Package Statistics
Total Downloads: 26
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

EncryptionCompat

Encryption compatibility for Laravel < 5.1 on PHP 7.1

Install

  • composer require "sevenshores/encryption-compat:~5.0"
  • remove 'Illuminate\Encryption\EncryptionServiceProvider' from config/app.php
  • add 'SevenShores\EncryptionCompat\EncryptionServiceProvider' to config/app.php
  • change cipher to 'AES-128-CBC' in config/app.php
  • run php artisan key:generate

Notes

Use at your own risk.

License

MIT

Thanks

  • @sisve for the idea
  • Laravel for the code. I mostly sliced up existing code.