MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

CipherStream

MMO\edms\helpers · 1 symbole · générée le 30 Nov 2026

class

CipherStream

CipherStream.php:12

The plain bytes of a file encrypted by Cipher, as a php stream (fread, fseek, fstat): what

class MMO\edms\helpers\CipherStream
Espace de noms
MMO\edms\helpers
Voir
FileResponse sends, a part of it for a Range request. Only the chunks read are decrypted, one at a time; nothing plain is written anywhere. Made by Cipher::decrypt, never opened by its url.

Constantes1

PROTOCOL

const PROTOCOL = 'mmo-edms-cipher'

Propriétés10

chunks

protected int $chunks = 1
Type
int

chunkSize

protected int $chunkSize = 65536
Type
int

cipher

protected MMO\edms\helpers\Cipher $cipher
Type
Cipher

context

$context = null

current

protected int $current = -1
Type
int

handle

protected $handle = null

header

protected string $header = ''
Type
string

plain

protected string $plain = ''
Type
string

position

protected int $position = 0
Type
int

size

protected int $size = 0
Type
int

Méthodes10

stream_seek($offset, $whence)

CipherStream.php:64
function stream_seek(int $offset, int $whence = SEEK_SET): bool
$offsetint
$whence = SEEK_SETint
retournebool

stream_stat()

CipherStream.php:80
function stream_stat(): array
retournearrayint> the plain bytes' size: what fstat() gives