2017 © Pedro Peláez
 

library laravel-mcrypt-faker

Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.

image

thomaswelton/laravel-mcrypt-faker

Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.

  • Thursday, May 14, 2015
  • by thomaswelton
  • Repository
  • 1 Watchers
  • 5 Stars
  • 659 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

Laravel Without Mcrypt

This package uses a trick to fool composer into thinking that your system has the PHP Mcrypt extension installed. Allowing you to install Laravel on shared hosts or systems where Mcrypt is not present. In addition it provides two service providers NoEncryptionServiceProvider and OpensslEncryptionServiceProvider for use as an alternative to Illuminate\Encryption\EncryptionServiceProvider, (*1)

Installation

Install via composer to an exisiting working Laravel project., (*2)

composer require thomaswelton/laravel-mcrypt-faker

If you are unable to install Laravel via composer due to no having Mcrypt installed then you will need to add this package manually. Download the latest Laravel source and edit the composer.json so your require block looks as follows., (*3)

"require": {
    "thomaswelton/laravel-mcrypt-faker": "1.0.*",
    "laravel/framework": "5.0.*"
}

The run composer install which will install this package along with the laravel framework., (*4)

Updating the Encryption Service Provider

In your config/app.php file remove Illuminate\Encryption\EncryptionServiceProvider from the providers array and replace it with either Thomaswelton\LaravelMcryptFaker\NoEncryptionServiceProvider or Thomaswelton\LaravelMcryptFaker\OpensslEncryptionServiceProvider, (*5)

Also update the cipher in config/app.php and set it to null as the cipher value MCRYPT_RIJNDAEL_128 is a constant that would not be defined without mcrypt, (*6)

WARNING The NoEncryptionServiceProvider, as the name suggests, provides no encryption for your application... at all. This should not be used in a production website. And even though the OpensslEncryptionServiceProvider provides encryption using the defuse/php-encryption package I personally can not attest to how cryptographically secure it's implementation is, even thought it "Works for me", (*7)

OpensslEncryption Key

To use the OpensslEncryptionServiceProvider your app secret key needs to be updated. This can be done by running php artisan key:generate-openssl, (*8)

The Versions

14/05 2015

dev-master

9999999-dev

Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.

  Sources   Download

MIT

The Requires

 

laravel encryption hack mcrypt

14/05 2015

1.0.0

1.0.0.0

Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.

  Sources   Download

MIT

The Requires

 

laravel encryption hack mcrypt