laravel / legacy-encrypter by taylorotwell

The legacy version of the Laravel mcrypt encrypter.
135,325
62
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: 2025-01-17 03:04:55
Package Statistics
Total Downloads: 135,325
Monthly Downloads: 305
Daily Downloads: 3
Total Stars: 62
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);