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

Setting the Encryption Key in Laravel results to logout

i need the key that will be used for subsequent Crypt::encrypt() and Crypt::decrypt() calls but only in the current request. Crypt::setKey('1'); $pin_code = Crypt::encrypt($pin_codes[$key]); // it do the encryption and then…
sumit
  • 15,003
  • 12
  • 69
  • 110
3
votes
2 answers

AES encryption with PyCrypto and decryption with mcrypt

For some sensitive data I decided to store it AES-encrypted on disc. I've implemented the encryption using PyCrypto. Furthermore, the data is important, and the stored encrypted data will be my only copy of it (backups aside), so I looked for some…
mkluwe
  • 3,823
  • 2
  • 28
  • 45
3
votes
4 answers

Error Installing Laravel: Mcrypt PHP extension required

I know there are a lot of questions about this on SO but none of them address my problem. I've checked everything they mention everything seems to indicate mcrypt is ok except when installing Laravel. Clearly I'm missing something. When installing…
Jake
  • 12,713
  • 18
  • 66
  • 96
3
votes
4 answers

Simple PHP Encryption / Decryption (Mcrypt, AES)

I'm looking for a simple yet cryptographically strong PHP implementation of AES using Mcrypt. Hoping to boil it down to a simple pair of functions, $garble = encrypt($key, $payload) and $payload = decrypt($key, $garble).
ChaseMoskal
  • 7,151
  • 5
  • 37
  • 50
3
votes
2 answers

Mcrypt PHP extension required in Laravel

I'm trying to install Laravel on Linux Ubuntu. I'm running Ubuntu 14.10. Everything worked alright. But now instead of getting the supposed page when accessing localhost I get the message: " Mcrypt PHP extension required " I'm copying some…
belyid
  • 841
  • 2
  • 12
  • 28
3
votes
1 answer

PHP Mcrypt - Decrypt function does not work for a fraction of the strings

I know there are already a million posts on PHP's mcrypt_decrypt, but I couldnt' find one that had the same results as mine. I have a pair of simple encrypt/decrypt functions that I'd like to use to perform a two-way encryption on data. The strange…
TonyTheJet
  • 517
  • 1
  • 6
  • 15
3
votes
2 answers

Trouble Installing mcrypt library on Mavericks (10.9)

I was able to successfully install the mcrypt extension on Mountain Lion but I'm having a difficult time installing the extension on Mavericks. For reference, I'm following this guide:…
Phil Birnie
  • 1,104
  • 2
  • 12
  • 29
3
votes
2 answers

SHA1 the PHP mcrypt_decrypt result

I have 2 encrypt & decrypt functions using PHP mcrypt library. public function encrypt_string($input, $key) { $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $cipher =…
Raptor
  • 53,206
  • 45
  • 230
  • 366
3
votes
5 answers

phpmyadmin mcrypt extension is missing

I'm using CentOS 6 and the latest phpMyAdmin (4.0.1.4) and I noticed the error "The mcrypt extension is missing. Please check your PHP configuration." I went ahead and ran: rpm -ivh…
user1922212
  • 165
  • 3
  • 3
  • 10
3
votes
2 answers

Decrypting AES CTR Little Endian with PHP

I'm having trouble using PHP to decrypt strings that were encrypted with iOS 5.x's CommonCrypto libraries. Here are the parameters: Algorithm: AES-128 Mode: CTR Mode options: CTR Little-Endian Padding: None Here's a sample of my best attempt at…
curtisdf
  • 4,130
  • 4
  • 33
  • 42
3
votes
1 answer

Python equivalent of PHP Mcrypt

I wrote the following DES encryption scheme in PHP . It uses a static Initialization Vector to make sure the output and input is one to one mapped PHP code : function encrypt($plaintext, $key) { # use an explicit encoding for the plain text …
Soumy
  • 113
  • 1
  • 12
3
votes
2 answers

How do I link mcrypt?

I am trying to install mcrypt for use on my local machines dev environment. I need to this to install Magento. I used this answer to install mcrypt, but get the following error: $ brew link mcrypt Linking /usr/local/Cellar/mcrypt/2.5.8...…
Thomas
  • 2,426
  • 3
  • 23
  • 38
3
votes
1 answer

Node.js: how to decipher text ciphered in php?

My PHP ciphering looks like this:
pawlik
  • 2,385
  • 19
  • 18
3
votes
3 answers

Installing Mcrypt extension for PHP on Mac OS X 10.5.8

How do I install mcrypt? I'm using Leopard 10.5.8 with PHP5.
Tomer Lichtash
  • 9,002
  • 16
  • 55
  • 71
3
votes
1 answer

mcrypt_decrypt PHP proper usage

I think my PHP intall might have problems. When I try to do this I get Warning: mcrypt_decrypt() [function.mcrypt-decrypt]: Module initialization failed I am writing a small snippet of code that will decrypt the following string encrypted with…
Harry Forbess
  • 2,094
  • 4
  • 16
  • 15