cvs: phpdoc /de/reference/openssl/functions openssl-pkcs7-encrypt.xml

From: Date: Thu, 25 Apr 2002 22:04:33 +0000
Subject: cvs: phpdoc /de/reference/openssl/functions openssl-pkcs7-encrypt.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969344872@lists.php.net to get a copy of this message
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" => "nighthawk@agent.com", // keyed syntax - "From: HQ <hq@cia.com>", // indexed syntax + "From: HQ <hq@cia.com>", // indexed syntax "Subject" => "Eyes only"))) { // Nachricht verschlüsselt - ab damit!

« previous php.doc (#969344872) next »