PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.7.2
Defender Security – Malware Scanner, Login Security & Firewall v5.7.2
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / vendor / altcha-org / altcha / src / ChallengeOptions.php

ChallengeOptions.php in Defender Security – Malware Scanner, Login Security & Firewall 5.7.2, at vendor/altcha-org/altcha/src/ChallengeOptions.php

28 lines 786 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AltchaOrg\Altcha;
4
5 class ChallengeOptions
6 {
7 public $algorithm;
8 public $maxNumber;
9 public $saltLength;
10 public $hmacKey;
11 public $salt;
12 public $number;
13 public $expires;
14 public $params;
15
16 public function __construct($options = [])
17 {
18 $this->algorithm = $options['algorithm'] ?? Altcha::DEFAULT_ALGORITHM;
19 $this->maxNumber = $options['maxNumber'] ?? Altcha::DEFAULT_MAX_NUMBER;
20 $this->saltLength = $options['saltLength'] ?? Altcha::DEFAULT_SALT_LENGTH;
21 $this->hmacKey = $options['hmacKey'] ?? '';
22 $this->salt = $options['salt'] ?? '';
23 $this->number = $options['number'] ?? 0;
24 $this->expires = $options['expires'] ?? null;
25 $this->params = $options['params'] ?? [];
26 }
27 }
28