laravel / legacy-encrypter by taylorotwell

The legacy version of the Laravel mcrypt encrypter.
134,286
61
6
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: 2024-04-22 03:05:05
Package Statistics
Total Downloads: 134,286
Monthly Downloads: 127
Daily Downloads: 0
Total Stars: 61
Total Watchers: 6
Total Forks: 34
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);