PHP encryption code converted to ColdFusion
问题 I have this bit of PHP that I'd like to do the equivalent of in ColdFusion. function & _encryptMessage( $message ) { $td = mcrypt_module_open( MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, ''); mcrypt_generic_init( $td, $this->key, $this->iv ); $encrypted_data = mcrypt_generic( $td, $message ); mcrypt_generic_deinit($td); mcrypt_module_close($td); return base64_encode( $encrypted_data ); } I think it is just encrypt(message,"","AES","Base64") But I have no real way of knowing for sure and it