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

How to remove mcrypt functions in php

The mcrypt module is deprecated in PHP 7.1, so I have to refactor my old encrypt / decrypt functions with the openssl functions. Actually I found no way doing this. My major problem is: The script still must be able to decrypt existing crypted data.…
Marco
  • 3,470
  • 4
  • 23
  • 35
-3
votes
1 answer

PHP7: mcrypt_cbc not work

please help to solve the problem. how to make it work for on php 7 ? function decr($string) { $key=""; $iv = mcrypt_create_iv(mcrypt_get_block_size (MCRYPT_CAST_32, MCRYPT_MODE_CFB), MCRYPT_DEV_RANDOM); $string =…
-3
votes
2 answers

php encrypt a very large number to produce a smaller number

I am dealing with very large numbers. One of my algorithms requires a number 'x' to be smaller than another number 'n', in order to perform that algorithm. I was wondering is it possible to encrypt the very large number to produce a smaller number…
M9A
  • 3,168
  • 14
  • 51
  • 79
-4
votes
4 answers

Decrypting password in PHP

I have encrypted username and password in php using crypt function. How can I decrypt that username and password? $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = "This is a…
ads
  • 17
  • 3
-4
votes
5 answers

Warning: mCrypt extension needs to be loaded for OpenCart to work

I'm trying to install OpenCart but get the following warning: "Warning: mCrypt extension needs to be loaded for OpenCart to work!" Since I'm a noob on this, could someone point me in the right direction on how to solve this? Google don't really help…
GetGalax
  • 149
  • 3
  • 5
  • 20
-4
votes
1 answer

Algorithm mcrypt AES for Android?

I need to implement a reversible encryption key algorithm such as mcrypt AES or use ready-made libraries. For example, I have: String pass = "12345"; String salt = "XgKHRfTnvytMLPgTDE";
-4
votes
1 answer

Need matching PHP encryption function

I built a multi-tiered app 3 years ago that encrypts on the .NET side and decrypts on the PHP side. I never did create a corresponding PHP Encrypt function because I didn't think I would ever need it. Now I do, and I can't remember where I got the…
HerrimanCoder
  • 6,835
  • 24
  • 78
  • 158
1 2 3
61
62