SMimeEncrypter
extends SMime
in package
Tags
Table of Contents
- $certs : mixed
- $cipher : mixed
- __construct() : mixed
- encrypt() : Message
Properties
$certs
private
mixed
$certs
$cipher
private
mixed
$cipher
Methods
__construct()
public
__construct(string|array<string|int, string> $certificate[, int|null $cipher = null ]) : mixed
Parameters
- $certificate : string|array<string|int, string>
-
The path (or array of paths) of the file(s) containing the X.509 certificate(s)
- $cipher : int|null = null
-
A set of algorithms used to encrypt the message. Must be one of these PHP constants: https://www.php.net/manual/en/openssl.ciphers.php
Return values
mixed —encrypt()
public
encrypt(Message $message) : Message
Parameters
- $message : Message