Questions tagged [mcrypt]

MCrypt, and the accompanying libmcrypt, are intended to be replacements for the old Unix crypt, except that they are under the GPL and support an ever-wider range of algorithms and modes. MCrypt has not been updated since 2007

MCrypt implements numerous cryptographic algorithms, mostly block ciphers and stream ciphers, some of which falls under export restrictions in the United States. Algorithms include , , arcfour, enigma, ghost, LOKI97, RC2, serpent, threeway, twofish, wake, XTEA

Caution

Please note that the MCrypt library has not been updated since 2007. The PHP project has moved to deprecate and ultimately remove MCrypt from the PHP core and other projects will likely follow suit. It is highly recommended you switch to OpenSSL or another maintained encryption project.

922 questions
3
votes
1 answer

mcrypt 7.1 deprecated / 7.2+ removal

I have been following information on SO about generating random strings using mcrypt_create_iv() and have some example code over at 3v4l.org. After reading the PHPWiki all mycrypt_* functions will show a depreceated warning but it does not specify…
Jaquarh
  • 6,493
  • 7
  • 34
  • 86
3
votes
1 answer

mcrypt_decrypt, openssl_decrypt and 0x06065064 EVP_DecryptFinal error

I have a problem with the openssl_decrypt function. Example code: // mcrypt $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, $iv); // OpenSSL $decrypted = openssl_decrypt($data, 'AES-256-CBC', $key, OPENSSL_RAW_DATA,…
schramster
  • 121
  • 4
3
votes
0 answers

PHP Warning: PHP Startup: Unable to load dynamic library mcrypt

I'm trying to build an app written in PHP (Laravel) from other devs, using Composer (I'm new to both). I've installed mcrypt for PHP v5.5 with Homebrew (OSX 10.11) but every time I update my dependencies with "./composer.phar update" it returns me…
bepi_roggiuzza
  • 195
  • 1
  • 3
  • 12
3
votes
1 answer

Exception: "Could not gather sufficient random data"

A client gets the following error CRITICAL: Uncaught PHP Exception Exception: "Could not gather sufficient random data" at /.../vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php line 69 {"exception":"[object] (Exception(code: 0):…
geoB
  • 4,578
  • 5
  • 37
  • 70
3
votes
2 answers

Where can I get php-mcrypt for PHP 7?

I've upgraded PHP to PHP 7 and am now seeing the following error Use of undefined constant MCRYPT_MODE_ECB. I am running CentOS 7 and having trouble updating php-mcrypt. I found it on Arch Linux but am unfamiliar with Pacman and am having trouble…
tylersDisplayName
  • 1,603
  • 4
  • 24
  • 42
3
votes
2 answers

Mcrypt PHP extension required in Mac OS X El Capitan

Getting error Mcrypt PHP extension required. with Laravel in Mac OS X El Capitan. Already installed the mcrypt using brew. brew install mcrypt brew install homebrew/php/php55-mcrypt sudo apachectl restart which php /usr/local/bin/php php…
Anshad Vattapoyil
  • 23,145
  • 18
  • 84
  • 132
3
votes
1 answer

Mcrypt problems after update OS X to El Capitan

I have a problem with mcrypt(and Laravel) after update Yosemite to El Capitan. When i run local site(Laravel Framework version 4.2.17), i'm getting Mcrypt PHP extension required. Here are my settings: 1) which php /usr/local/bin/php 2) php…
Olga Zhe
  • 163
  • 7
3
votes
3 answers

Adding mcrypt to Plesk

I am running Plesk v8.2.0 and I have a program that needs mcrypt module installed but I cant find any relevent infromation on how to get mcrypt setup on Plesk. It is on a Unix based server. Does anyone have any ideas on how to set this up? Any…
Scott's Oasys
  • 154
  • 2
  • 3
  • 11
3
votes
3 answers

Decrypt mcrypt with openssl

Since mcrypt is considered obsolete, my task is upgrading the current code to use openssl. Sounds simple, but ... after a few days of try and failure I feel like going insane. My question to you is: Is there any way you can decrypt with openssl data…
Pho3nix
  • 53
  • 1
  • 5
3
votes
1 answer

php mcrypt encryption without IV

I need to use a encryption mechanism. I chose mcrypt as it is available and for its examples. But I see generation time is too much. When I use IV as in given examples, It taken lot of time while when I removed it it generate encrypted value…
kuldeep.kamboj
  • 2,566
  • 3
  • 26
  • 63
3
votes
1 answer

OSX 10.10 PHP Composer not finding required extensions intl and mcrypt

I am attempting to create a cake PHP application on OSX 10.10 using the following command: php /usr/local/bin/composer.phar create-project --prefer-dist cakephp/app testapp When I do I am getting the following error: Your requirements could not be…
user1901469
  • 1,169
  • 1
  • 10
  • 21
3
votes
1 answer

OSX 10.10 Yosemite local development environment broke - PHP mcrypt Issue

I a running a local development environment on my MBP using osx yosemite, php 5.5.14, apache 2.4 mysql (sometimes) and a few things installed via brew. I tried to run a CMS locally and ran into an issue where it stated i needed mcrypt; so i tried to…
Martin
  • 31
  • 3
3
votes
1 answer

Is the raw output returned by PHP's hashing functions the same as pack('H*')?

PHP's various hashing functions like md5(), sha1(), hash(), hash_pbkdf2() and hash_hmac() allow you to set $raw_output = false and get raw binary data. I have put together a class that encrypts using mcrypt and hash_pbkdf2. When creating the key…
texelate
  • 2,460
  • 3
  • 24
  • 32
3
votes
1 answer

Extra Characters Output From mcrypt_decrypt

I am in need of symmetric encryption and decryption in a pair of PHP scripts. I am using mcrypt_encrypt and crypt_decrypt. To test this, I have the following code: $encrypted_token = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $ENCRYPTION_SECRET,…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
3
votes
3 answers

How to install MCrypt PHP Extension on CentOS 7.0 x64

I am using laravel framework. laravel project running requirement is MCrypt. i m trying to install but i m facing error HTTP request sent, awaiting response... 404 Not Found 2014-09-18 13:25:27 ERROR 404: Not Found. yum install php-mcrypt Loaded…
UMAIR ALI
  • 1,055
  • 5
  • 14
  • 25