Encrypt a file using anonymous public-key encryption (with ciphertext
authentication).
public static seal ( string | resource $input, string | resource $output, EncryptionPublicKey $publicKey ) : integer | ||
$input | string | resource | File name or file handle |
$output | string | resource | File name or file handle |
$publicKey | EncryptionPublicKey | Recipient's encryption public key |
return | integer | Number of bytes written |