/** * Decrypt an e-mail address encrypted by the ApplyEmailProtection() method * @param $address string */ public function DecryptProtectedEmail($address) { $encryption_key = $this->settings->GetEmailAddressEncryptionKey(); $address = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($encryption_key), base64_decode($address), MCRYPT_MODE_CBC, md5(md5($encryption_key))), ""); return $address; }