bobbybouwmann / legacy-encrypter by bobbybouwmann
forked from laravel/legacy-encrypter

The legacy version of the Laravel mcrypt encrypter (for 5.1 - 5.3).
13
2
2
Package Data
Maintainer Username: bobbybouwmann
Maintainer Contact: bobbybouwmann@gmail.com (Bobby Bouwmann)
Package Create Date: 2016-09-07
Package Last Update: 2016-09-07
Language: PHP
License: MIT
Last Refreshed: 2024-04-26 03:18:58
Package Statistics
Total Downloads: 13
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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);