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
-1
votes
1 answer

Mcrypt issue in php 7.2 or greater

I am getting issue related to the M CRYPT while i updated my PHP version. I installed M CRYPT extension but its working in Ubuntu server and not working in window system,
-1
votes
1 answer

Substitute mcrypt_encrypt (php) by shell_exec openssl

Need to substitute mcrypt_encrypt (php) by shell_exec openssl command with keys. No possible to add mcrypt lib (openssl_encrypt too) for exist sys configuration, but possible to run openssl in command line. But results is different. Need help. …
DJArty
  • 11
  • 2
-1
votes
2 answers

AES-256-ECB encryption in nodejs does not match php MCrypt module

I'm receiving an encrypted message from an external party. They're using php and mcrypt for encryption with the following configuration algo: rijndael-256 mode: ecb example encrypted message:…
tungv
  • 107
  • 1
  • 9
-1
votes
1 answer

mcrypt_get_block_size(): Module initialization failed - Error on function

I am trying to create a function which can encrypt a string. I have the following code but I am getting an error. $key = "testkey"; // This is the function that does the encryption. Treat it as a black box. Do not edit! function…
deanhodges
  • 79
  • 1
  • 12
-1
votes
1 answer

Decrypting 3des from hex data with a hex key

I am trying to use the mycrypt php library to decrypt the following: Key: aaaaaaaabbbbbbbbccccccccdddddddd Data: b5057bbc04b842a96144a0f617f2820e Expected Result: Test123123 The data is encrypted with 3DES with the mode ECB. The code I'm…
Tony
  • 2,890
  • 1
  • 24
  • 35
-1
votes
1 answer

mcrypt_decrypt not returning correct data only when used in Laravel seeding

We are using the built in Database Seeding in Laravel 5.3 under PHP 7.0 on Windows. Problem is that whenever we use mcrypt_encrypt to encrypt some data, the data we get back from mcrypt_decrypt is not the same as what we passed in. $data =…
Randar Puust
  • 363
  • 4
  • 14
-1
votes
1 answer

mcrypt_encrypt(): Key of size 26 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in

I am getting the warning in PHP Version 5.6.15. What does mean by Key of size 26 not supported by this algorithm.
Alauddin
  • 19
  • 5
-1
votes
2 answers

mcrypt_encrypt(): Key of size 29 not supported by this algorithm

i have my old code back from 2011 which calculate hash private static $key = 'G@W351T35.cz#€2011GAMESITES'; /** * Computes salted password hash. * @param string * @return string */ public static function calculateHash($password) { $text =…
Andurit
  • 5,612
  • 14
  • 69
  • 121
-1
votes
1 answer

PHP cryption on server won't work "mcrypt_get_iv_size" function

So I was writing a web application and for some uses I need to encrypt string and decrypt it later, and everything from my code works perfectly on localhost on Macbook on El Capitan 10.11.4 and XAMPP 5.6.15-1 but when I upload code on the server it…
-1
votes
1 answer

Error during encrypt a file using Mcrypt DES in php

i want to encrypt a text file. below is my code.But i am getting function error during run.
bKashOST
  • 149
  • 4
  • 11
-1
votes
1 answer

codeigniter mcrypt and don't create_iv

I am using codeigniter 2x, and I need to decode string I have been given, and that string containes array. For that I got a key, iv, cipher and mode. I figure out how to set key, cipher and…
Sasa
  • 553
  • 7
  • 25
-1
votes
1 answer

Message: mcrypt_encrypt(): The IV parameter must be as long as the blocksize

this is the first time I have come across this error and I am very confused as to how to fix this error. I will post my code below. Kindly request for whatever else is needed to facilitate in this. Any help will be greatly appreciated. function…
DEV
  • 647
  • 4
  • 19
  • 31
-1
votes
1 answer

writing php MCrypt twofish for c# bouncycastle

I'm learning how to use the BouncyCastle c# cipher library for doing encryption. I'm not looking to send messages so I'm not thinking about security etc. I have written my c# code in Visual Studio. Here is the problem. I have encrypted the text…
Andy Hyde
  • 21
  • 5
-1
votes
2 answers

How to install php55-php-mcrypt with scl-utils?

It's a known fact that on Fedora/RHEL/CentOS 7.x based systems PHP 5.4.16 is the supported version. However, for my application I needed PHP 5.5 and I installed it from RHEL-recommended scl-utils repository as explained on…
Nick
  • 207
  • 3
  • 11
-1
votes
1 answer

install mcrypt on mac os maveriks

I moved to mac os x and i set up the vhost for my laravel project but when i run it tell me Mcrypt PHP extension required. So i used this tuto http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-yosemite-development-server/ and in…
Ahmed Karmous
  • 373
  • 2
  • 10
  • 25