19 declare(strict_types=1);
35 return "key_rotation";
42 if (is_readable(self::PATH())) {
44 $current_keys = require self::PATH();
49 if (is_array($current_keys)) {
51 $current_keys = array_slice($current_keys, 1);
52 $new_keys = $current_keys;
55 while (count($new_keys) < self::NUMBER_OF_KEYS) {
59 $new_keys = array_slice($new_keys, 0, self::NUMBER_OF_KEYS);
61 return new Setup\Artifact\ArrayArtifact($new_keys);
67 for ($i = 0; $i < $length; $i++) {
68 $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...