laravel / legacy-encrypter by taylorotwell

The legacy version of the Laravel mcrypt encrypter.
81,473
51
4
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-03-21 03:41:39
Package Statistics
Total Downloads: 81,473
Monthly Downloads: 2,762
Daily Downloads: 89
Total Stars: 51
Total Watchers: 4
Total Forks: 27
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);