I am in a situation where I have to decrypt a string coming from a cookie which is already encrypted using mcrypt_encrypt method on an old system using php 5.6 (which I cannot change for now) while I am using php 7.3 which does not support this, is there any alternate or workaround to solve this
old system uses this method to encrypt which for some reason I cannot change mcrypt_encrypt(MCRYPT_DES, $this->salt, serialize($arrayData), 'ecb');
I have tried openssl_decrypt but it returns false with following
openssl_decrypt($encryptedString, 'DES-ECB', $this->salt) OR openssl_decrypt($encryptedString, 'des-ecb', $this->salt)