HQ EOD; / / load key $key = file_get_contents("nighthawk.pem"); / / save message to file $fp = fopen("msg.txt", "w"); fwrite($fp, $data); fclose($fp); / / encrypt it if (openssl_pkcs7_encrypt("msg.txt", "enc.txt", $key, array("To "= "nighthawk@example.com", / / keyed syntax "From:
HQ hq@cia.com ", / / indexed syntax "Subject" = "Eyes only"))) {/ / message chiffré: envoyez le! exec(ini_get("sendmail_path"). "enc.txt");}?