Table of contents
Namespace: Com\Tecnick\Pdf\Encrypt\Type
class Seed
Source: src/Type/Seed.php:34
generate random seed
Constants
SEEDLEN
Number of random bytes returned.
public const SEEDLEN = 64
Source: src/Type/Seed.php:41
Methods
encrypt()
Generate a random seed.
public encrypt(string $data = '', string $key = '', string $_mode = ''): string
Parameters:
$data(string): Additional data appended to the random bytes.$key(string): Additional data appended to the random bytes.$_mode(string): Unused; retained for signature compatibility.
Returns: string: seed
Throws:
Random\RandomException: When no cryptographically secure source is available.
Source: src/Type/Seed.php:54