|
PHP5中文手册
openssl_pkcs7_encrypt(PHP 4 >= 4.0.6, PHP 5) openssl_pkcs7_encrypt — Encrypt an S/MIME message 说明
bool openssl_pkcs7_encrypt
( string $infile
, string $outfile
, mixed $recipcerts
, array $headers
[, int $flags
[, int $cipherid
]] )
openssl_pkcs7_encrypt() takes the contents of the file named infile and encrypts them using an RC2 40-bit cipher so that they can only be read by the intended recipients specified by recipcerts . 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 更新日志
范例
Example#1 openssl_pkcs7_encrypt() example
<?php |