phpdftk API Documentation

CryptInterface
in

Symmetric cipher contract for PDF stream/string encryption.

The key is derived externally by PdfKeyDerivation — implementations only handle the raw encrypt/decrypt with a pre-derived key.

Table of Contents

Methods

decrypt()  : string
encrypt()  : string

Methods

decrypt()

public decrypt(string $data, string $key) : string
Parameters
$data : string
$key : string
Return values
string

encrypt()

public encrypt(string $data, string $key) : string
Parameters
$data : string
$key : string
Return values
string

        
On this page

Search results