19 declare(strict_types=1);
31 public const KEY_ROTATION =
'./src/FileDelivery/artifacts/key_rotation.php';
37 return self::KEY_ROTATION;
43 if (is_readable(self::KEY_ROTATION)) {
45 $current_keys = require self::KEY_ROTATION;
50 if (is_array($current_keys)) {
52 $current_keys = array_slice($current_keys, 1);
53 $new_keys = $current_keys;
56 while (count($new_keys) < self::NUMBER_OF_KEYS) {
60 $new_keys = array_slice($new_keys, 0, self::NUMBER_OF_KEYS);
62 return new Setup\Artifact\ArrayArtifact($new_keys);
68 for ($i = 0; $i < $length; $i++) {
69 $return .= chr(random_int(33, 125));
build()
Build the artifact based.
This is an objective to build some artifact.
generateRandomString(int $length)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...