Seed

generate random seed

Namespace: Com\Tecnick\Pdf\Encrypt\Type

File: Seed.php line 34

generate random seed

Tags

Constants

SEEDLEN

File: Seed.php line 41

public int SEEDLEN = 64

Methods

encrypt()

File: Seed.php line 54

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.

Tags

  • throws: RandomException When no cryptographically secure source is available.

Return values

string —

seed