laravel / legacy-encrypter by taylorotwell

The legacy version of the Laravel mcrypt encrypter.
70,635
50
5
Package Data
Maintainer Username: taylorotwell
Maintainer Contact: taylor@laravel.com (Taylor Otwell)
Package Create Date: 2016-08-03
Package Last Update: 2017-05-24
Language: PHP
License: MIT
Last Refreshed: 2019-01-10 00:41:24
Package Statistics
Total Downloads: 70,635
Monthly Downloads: 4,901
Daily Downloads: 217
Total Stars: 50
Total Watchers: 5
Total Forks: 26
Total Open Issues: 3

Laravel Legacy Encrypter

This encryption package provides support for the legacy Mcrypt encrypter used by Laravel 5.0 through 5.2. It is primarily intended to be used to migrate your data to the new OpenSSL based encrypter used in 5.1 through the latest release of Laravel.

Usage Example

use Laravel\LegacyEncrypter\McryptEncrypter;

$encrypter = new McryptEncrypter($encryptionKey);

$encrypted = $encrypter->encrypt('I am encrypted!');

$decrypted = $encrypter->decrypt($encrypted);