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 EOD; / / load key $key = implode("", file("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: