Table of contents
Namespace: Com\Tecnick\Pdf\Encrypt\Type
File: Seed.php line 34
generate random seed
Tags
- since: 2011-05-23
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-encrypt
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