Un-encrypting / re-encrypting a ColdFusion encrypted string in PHP
问题 I'm in the unenviable position where I have to maintain functionality with an existing ColdFusion application. As part of it's login process the Coldfusion app stores a cookie with an encrypted string. encrypt(strToEncrypt, theKey, "AES", "Base64") I can successfully decrypt this string in PHP using MCrypt and the following code mcrypt_decrypt( MCRYPT_RIJNDAEL_128, base64_decode($theKey), base64_decode($encrypted_string), MCRYPT_MODE_ECB, "0000000000000000") I now have the need to perform the