betz            Thu Apr 25 18:04:33 2002 EDT

  Modified files:              
    /phpdoc/de/reference/openssl/functions      openssl-pkcs7-encrypt.xml 
  Log:
  sync to en
  
Index: phpdoc/de/reference/openssl/functions/openssl-pkcs7-encrypt.xml
diff -u phpdoc/de/reference/openssl/functions/openssl-pkcs7-encrypt.xml:1.2 
phpdoc/de/reference/openssl/functions/openssl-pkcs7-encrypt.xml:1.3
--- phpdoc/de/reference/openssl/functions/openssl-pkcs7-encrypt.xml:1.2 Wed Apr 17 
02:53:22 2002
+++ phpdoc/de/reference/openssl/functions/openssl-pkcs7-encrypt.xml     Thu Apr 25 
+18:04:32 2002
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 <!-- splitted from ./de/functions/openssl.xml, last change in rev 1.1 -->
 <!-- last change to 'openssl-pkcs7-encrypt' in en/ tree in rev 1.4 -->
-<!-- EN-Revision: 1.2 Maintainer: betz Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: betz Status: ready -->
 <!-- OLD-Revision: 1.22/EN.1.4 -->
   <refentry id="function.openssl-pkcs7-encrypt">
    <refnamediv>
@@ -56,14 +56,19 @@
 
 HQ
 EOD;
+
+// Schlüssel laden
+$key = implode("", file("my.pem"));
+
 // speichern der Nachricht in einer Datei
 $fp = fopen("msg.txt", "w");
 fwrite($fp, $data);
 fclose($fp);
+
 // verschlüsseln
-if (openssl_pkcs7_encrypt("msg.txt", "enc.txt", "nighthawk.pem",
+if (openssl_pkcs7_encrypt("msg.txt", "enc.txt", $key,
     array("To" => "[EMAIL PROTECTED]", // keyed syntax
-          "From: HQ <[EMAIL PROTECTED]>", // indexed syntax
+          "From: HQ <[EMAIL PROTECTED]>",      // indexed syntax
           "Subject" => "Eyes only")))
 {
     // Nachricht verschlüsselt - ab damit!


Reply via email to