ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Worksheet\Protection Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Worksheet\Protection:

Public Member Functions

 __construct ()
 Create a new Protection. More...
 
 isProtectionEnabled ()
 Is some sort of protection enabled? More...
 
 getSheet ()
 Get Sheet. More...
 
 setSheet ($pValue)
 Set Sheet. More...
 
 getObjects ()
 Get Objects. More...
 
 setObjects ($pValue)
 Set Objects. More...
 
 getScenarios ()
 Get Scenarios. More...
 
 setScenarios ($pValue)
 Set Scenarios. More...
 
 getFormatCells ()
 Get FormatCells. More...
 
 setFormatCells ($pValue)
 Set FormatCells. More...
 
 getFormatColumns ()
 Get FormatColumns. More...
 
 setFormatColumns ($pValue)
 Set FormatColumns. More...
 
 getFormatRows ()
 Get FormatRows. More...
 
 setFormatRows ($pValue)
 Set FormatRows. More...
 
 getInsertColumns ()
 Get InsertColumns. More...
 
 setInsertColumns ($pValue)
 Set InsertColumns. More...
 
 getInsertRows ()
 Get InsertRows. More...
 
 setInsertRows ($pValue)
 Set InsertRows. More...
 
 getInsertHyperlinks ()
 Get InsertHyperlinks. More...
 
 setInsertHyperlinks ($pValue)
 Set InsertHyperlinks. More...
 
 getDeleteColumns ()
 Get DeleteColumns. More...
 
 setDeleteColumns ($pValue)
 Set DeleteColumns. More...
 
 getDeleteRows ()
 Get DeleteRows. More...
 
 setDeleteRows ($pValue)
 Set DeleteRows. More...
 
 getSelectLockedCells ()
 Get SelectLockedCells. More...
 
 setSelectLockedCells ($pValue)
 Set SelectLockedCells. More...
 
 getSort ()
 Get Sort. More...
 
 setSort ($pValue)
 Set Sort. More...
 
 getAutoFilter ()
 Get AutoFilter. More...
 
 setAutoFilter ($pValue)
 Set AutoFilter. More...
 
 getPivotTables ()
 Get PivotTables. More...
 
 setPivotTables ($pValue)
 Set PivotTables. More...
 
 getSelectUnlockedCells ()
 Get SelectUnlockedCells. More...
 
 setSelectUnlockedCells ($pValue)
 Set SelectUnlockedCells. More...
 
 getPassword ()
 Get hashed password. More...
 
 setPassword ($pValue, $pAlreadyHashed=false)
 Set Password. More...
 
 getAlgorithm ()
 Get algorithm name. More...
 
 setAlgorithm (string $algorithm)
 Set algorithm name. More...
 
 getSalt ()
 Get salt value. More...
 
 setSalt (string $salt)
 Set salt value. More...
 
 getSpinCount ()
 Get spin count. More...
 
 setSpinCount (int $spinCount)
 Set spin count. More...
 
 verify (string $password)
 Verify that the given non-hashed password can "unlock" the protection. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Data Fields

const ALGORITHM_MD2 = 'MD2'
 
const ALGORITHM_MD4 = 'MD4'
 
const ALGORITHM_MD5 = 'MD5'
 
const ALGORITHM_SHA_1 = 'SHA-1'
 
const ALGORITHM_SHA_256 = 'SHA-256'
 
const ALGORITHM_SHA_384 = 'SHA-384'
 
const ALGORITHM_SHA_512 = 'SHA-512'
 
const ALGORITHM_RIPEMD_128 = 'RIPEMD-128'
 
const ALGORITHM_RIPEMD_160 = 'RIPEMD-160'
 
const ALGORITHM_WHIRLPOOL = 'WHIRLPOOL'
 

Private Member Functions

 generateSalt ()
 Create a pseudorandom string. More...
 

Private Attributes

 $sheet = false
 
 $objects = false
 
 $scenarios = false
 
 $formatCells = false
 
 $formatColumns = false
 
 $formatRows = false
 
 $insertColumns = false
 
 $insertRows = false
 
 $insertHyperlinks = false
 
 $deleteColumns = false
 
 $deleteRows = false
 
 $selectLockedCells = false
 
 $sort = false
 
 $autoFilter = false
 
 $pivotTables = false
 
 $selectUnlockedCells = false
 
 $password = ''
 
 $algorithm = ''
 
 $salt = ''
 
 $spinCount = 10000
 

Detailed Description

Definition at line 7 of file Protection.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::__construct ( )

Create a new Protection.

Definition at line 163 of file Protection.php.

164  {
165  }

Member Function Documentation

◆ __clone()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::__clone ( )

Implement PHP __clone to create a deep clone, not just a shallow copy.

Definition at line 680 of file Protection.php.

References $key.

681  {
682  $vars = get_object_vars($this);
683  foreach ($vars as $key => $value) {
684  if (is_object($value)) {
685  $this->$key = clone $value;
686  } else {
687  $this->$key = $value;
688  }
689  }
690  }
$key
Definition: croninfo.php:18

◆ generateSalt()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::generateSalt ( )
private

Create a pseudorandom string.

Definition at line 610 of file Protection.php.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword().

610  : string
611  {
612  return base64_encode(random_bytes(16));
613  }
+ Here is the caller graph for this function:

◆ getAlgorithm()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getAlgorithm ( )

Get algorithm name.

Definition at line 618 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$algorithm.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().

618  : string
619  {
620  return $this->algorithm;
621  }
+ Here is the caller graph for this function:

◆ getAutoFilter()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getAutoFilter ( )

◆ getDeleteColumns()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getDeleteColumns ( )

Get DeleteColumns.

Returns
bool

Definition at line 413 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$deleteColumns.

◆ getDeleteRows()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getDeleteRows ( )

Get DeleteRows.

Returns
bool

Definition at line 437 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$deleteRows.

◆ getFormatCells()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getFormatCells ( )

Get FormatCells.

Returns
bool

Definition at line 269 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$formatCells.

◆ getFormatColumns()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getFormatColumns ( )

Get FormatColumns.

Returns
bool

Definition at line 293 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$formatColumns.

◆ getFormatRows()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getFormatRows ( )

Get FormatRows.

Returns
bool

Definition at line 317 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$formatRows.

◆ getInsertColumns()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getInsertColumns ( )

Get InsertColumns.

Returns
bool

Definition at line 341 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$insertColumns.

◆ getInsertHyperlinks()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getInsertHyperlinks ( )

Get InsertHyperlinks.

Returns
bool

Definition at line 389 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$insertHyperlinks.

◆ getInsertRows()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getInsertRows ( )

Get InsertRows.

Returns
bool

Definition at line 365 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$insertRows.

◆ getObjects()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getObjects ( )

Get Objects.

Returns
bool

Definition at line 221 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$objects.

◆ getPassword()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getPassword ( )

Get hashed password.

Returns
string

Definition at line 581 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$password.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().

+ Here is the caller graph for this function:

◆ getPivotTables()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getPivotTables ( )

Get PivotTables.

Returns
bool

Definition at line 533 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$pivotTables.

◆ getSalt()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSalt ( )

Get salt value.

Definition at line 634 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$salt.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().

634  : string
635  {
636  return $this->salt;
637  }
+ Here is the caller graph for this function:

◆ getScenarios()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getScenarios ( )

Get Scenarios.

Returns
bool

Definition at line 245 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$scenarios.

◆ getSelectLockedCells()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSelectLockedCells ( )

Get SelectLockedCells.

Returns
bool

Definition at line 461 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$selectLockedCells.

◆ getSelectUnlockedCells()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSelectUnlockedCells ( )

Get SelectUnlockedCells.

Returns
bool

Definition at line 557 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$selectUnlockedCells.

◆ getSheet()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSheet ( )

Get Sheet.

Returns
bool

Definition at line 197 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$sheet.

◆ getSort()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSort ( )

Get Sort.

Returns
bool

Definition at line 485 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$sort.

◆ getSpinCount()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSpinCount ( )

Get spin count.

Definition at line 650 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$spinCount.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().

650  : int
651  {
652  return $this->spinCount;
653  }
+ Here is the caller graph for this function:

◆ isProtectionEnabled()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::isProtectionEnabled ( )

Is some sort of protection enabled?

Returns
bool

Definition at line 172 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$selectUnlockedCells.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().

173  {
174  return $this->sheet ||
175  $this->objects ||
176  $this->scenarios ||
177  $this->formatCells ||
178  $this->formatColumns ||
179  $this->formatRows ||
180  $this->insertColumns ||
181  $this->insertRows ||
182  $this->insertHyperlinks ||
183  $this->deleteColumns ||
184  $this->deleteRows ||
185  $this->selectLockedCells ||
186  $this->sort ||
187  $this->autoFilter ||
188  $this->pivotTables ||
190  }
+ Here is the caller graph for this function:

◆ setAlgorithm()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setAlgorithm ( string  $algorithm)

Set algorithm name.

Definition at line 626 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$algorithm.

626  : void
627  {
628  $this->algorithm = $algorithm;
629  }

◆ setAutoFilter()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setAutoFilter (   $pValue)

Set AutoFilter.

Parameters
bool$pValue
Returns
$this

Definition at line 521 of file Protection.php.

522  {
523  $this->autoFilter = $pValue;
524 
525  return $this;
526  }

◆ setDeleteColumns()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setDeleteColumns (   $pValue)

Set DeleteColumns.

Parameters
bool$pValue
Returns
$this

Definition at line 425 of file Protection.php.

426  {
427  $this->deleteColumns = $pValue;
428 
429  return $this;
430  }

◆ setDeleteRows()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setDeleteRows (   $pValue)

Set DeleteRows.

Parameters
bool$pValue
Returns
$this

Definition at line 449 of file Protection.php.

450  {
451  $this->deleteRows = $pValue;
452 
453  return $this;
454  }

◆ setFormatCells()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setFormatCells (   $pValue)

Set FormatCells.

Parameters
bool$pValue
Returns
$this

Definition at line 281 of file Protection.php.

282  {
283  $this->formatCells = $pValue;
284 
285  return $this;
286  }

◆ setFormatColumns()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setFormatColumns (   $pValue)

Set FormatColumns.

Parameters
bool$pValue
Returns
$this

Definition at line 305 of file Protection.php.

306  {
307  $this->formatColumns = $pValue;
308 
309  return $this;
310  }

◆ setFormatRows()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setFormatRows (   $pValue)

Set FormatRows.

Parameters
bool$pValue
Returns
$this

Definition at line 329 of file Protection.php.

330  {
331  $this->formatRows = $pValue;
332 
333  return $this;
334  }

◆ setInsertColumns()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setInsertColumns (   $pValue)

Set InsertColumns.

Parameters
bool$pValue
Returns
$this

Definition at line 353 of file Protection.php.

354  {
355  $this->insertColumns = $pValue;
356 
357  return $this;
358  }

◆ setInsertHyperlinks()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setInsertHyperlinks (   $pValue)

Set InsertHyperlinks.

Parameters
bool$pValue
Returns
$this

Definition at line 401 of file Protection.php.

402  {
403  $this->insertHyperlinks = $pValue;
404 
405  return $this;
406  }

◆ setInsertRows()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setInsertRows (   $pValue)

Set InsertRows.

Parameters
bool$pValue
Returns
$this

Definition at line 377 of file Protection.php.

378  {
379  $this->insertRows = $pValue;
380 
381  return $this;
382  }

◆ setObjects()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setObjects (   $pValue)

Set Objects.

Parameters
bool$pValue
Returns
$this

Definition at line 233 of file Protection.php.

234  {
235  $this->objects = $pValue;
236 
237  return $this;
238  }

◆ setPassword()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setPassword (   $pValue,
  $pAlreadyHashed = false 
)

Set Password.

Parameters
string$pValue
bool$pAlreadyHashedIf the password has already been hashed, set this to true
Returns
$this

Definition at line 594 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$salt, PhpOffice\PhpSpreadsheet\Worksheet\Protection\generateSalt(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getAlgorithm(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSalt(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSpinCount(), PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\hashPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\setSalt().

595  {
596  if (!$pAlreadyHashed) {
597  $salt = $this->generateSalt();
598  $this->setSalt($salt);
599  $pValue = PasswordHasher::hashPassword($pValue, $this->getAlgorithm(), $this->getSalt(), $this->getSpinCount());
600  }
601 
602  $this->password = $pValue;
603 
604  return $this;
605  }
static hashPassword(string $password, string $algorithm='', string $salt='', int $spinCount=10000)
Create a password hash from a given string by a specific algorithm.
setSalt(string $salt)
Set salt value.
Definition: Protection.php:642
generateSalt()
Create a pseudorandom string.
Definition: Protection.php:610
+ Here is the call graph for this function:

◆ setPivotTables()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setPivotTables (   $pValue)

Set PivotTables.

Parameters
bool$pValue
Returns
$this

Definition at line 545 of file Protection.php.

546  {
547  $this->pivotTables = $pValue;
548 
549  return $this;
550  }

◆ setSalt()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSalt ( string  $salt)

Set salt value.

Definition at line 642 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$salt.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword().

642  : void
643  {
644  $this->salt = $salt;
645  }
+ Here is the caller graph for this function:

◆ setScenarios()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setScenarios (   $pValue)

Set Scenarios.

Parameters
bool$pValue
Returns
$this

Definition at line 257 of file Protection.php.

258  {
259  $this->scenarios = $pValue;
260 
261  return $this;
262  }

◆ setSelectLockedCells()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSelectLockedCells (   $pValue)

Set SelectLockedCells.

Parameters
bool$pValue
Returns
$this

Definition at line 473 of file Protection.php.

474  {
475  $this->selectLockedCells = $pValue;
476 
477  return $this;
478  }

◆ setSelectUnlockedCells()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSelectUnlockedCells (   $pValue)

Set SelectUnlockedCells.

Parameters
bool$pValue
Returns
$this

Definition at line 569 of file Protection.php.

570  {
571  $this->selectUnlockedCells = $pValue;
572 
573  return $this;
574  }

◆ setSheet()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSheet (   $pValue)

Set Sheet.

Parameters
bool$pValue
Returns
$this

Definition at line 209 of file Protection.php.

210  {
211  $this->sheet = $pValue;
212 
213  return $this;
214  }

◆ setSort()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSort (   $pValue)

Set Sort.

Parameters
bool$pValue
Returns
$this

Definition at line 497 of file Protection.php.

498  {
499  $this->sort = $pValue;
500 
501  return $this;
502  }

◆ setSpinCount()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSpinCount ( int  $spinCount)

Set spin count.

Definition at line 658 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$spinCount.

658  : void
659  {
660  $this->spinCount = $spinCount;
661  }

◆ verify()

PhpOffice\PhpSpreadsheet\Worksheet\Protection::verify ( string  $password)

Verify that the given non-hashed password can "unlock" the protection.

Definition at line 666 of file Protection.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\$hash, PhpOffice\PhpSpreadsheet\Worksheet\Protection\getAlgorithm(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getPassword(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSalt(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSpinCount(), PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\hashPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\isProtectionEnabled().

666  : bool
667  {
668  if (!$this->isProtectionEnabled()) {
669  return true;
670  }
671 
673 
674  return $this->getPassword() === $hash;
675  }
static hashPassword(string $password, string $algorithm='', string $salt='', int $spinCount=10000)
Create a password hash from a given string by a specific algorithm.
isProtectionEnabled()
Is some sort of protection enabled?
Definition: Protection.php:172
+ Here is the call graph for this function:

Field Documentation

◆ $algorithm

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$algorithm = ''
private

◆ $autoFilter

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$autoFilter = false
private

◆ $deleteColumns

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$deleteColumns = false
private

◆ $deleteRows

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$deleteRows = false
private

◆ $formatCells

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$formatCells = false
private

◆ $formatColumns

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$formatColumns = false
private

◆ $formatRows

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$formatRows = false
private

◆ $insertColumns

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$insertColumns = false
private

◆ $insertHyperlinks

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$insertHyperlinks = false
private

◆ $insertRows

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$insertRows = false
private

◆ $objects

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$objects = false
private

◆ $password

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$password = ''
private

◆ $pivotTables

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$pivotTables = false
private

◆ $salt

◆ $scenarios

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$scenarios = false
private

◆ $selectLockedCells

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$selectLockedCells = false
private

◆ $selectUnlockedCells

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$selectUnlockedCells = false
private

◆ $sheet

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$sheet = false
private

◆ $sort

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$sort = false
private

◆ $spinCount

PhpOffice\PhpSpreadsheet\Worksheet\Protection::$spinCount = 10000
private

◆ ALGORITHM_MD2

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_MD2 = 'MD2'

◆ ALGORITHM_MD4

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_MD4 = 'MD4'

◆ ALGORITHM_MD5

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_MD5 = 'MD5'

◆ ALGORITHM_RIPEMD_128

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_RIPEMD_128 = 'RIPEMD-128'

◆ ALGORITHM_RIPEMD_160

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_RIPEMD_160 = 'RIPEMD-160'

◆ ALGORITHM_SHA_1

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_1 = 'SHA-1'

◆ ALGORITHM_SHA_256

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_256 = 'SHA-256'

◆ ALGORITHM_SHA_384

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_384 = 'SHA-384'

◆ ALGORITHM_SHA_512

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_512 = 'SHA-512'

◆ ALGORITHM_WHIRLPOOL

const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_WHIRLPOOL = 'WHIRLPOOL'

The documentation for this class was generated from the following file: