19declare(strict_types=1);
36 return "key_rotation";
42 if (is_readable(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 ArrayArtifact($new_keys);
67 for ($i = 0; $i < $length; $i++) {
68 $return .= chr(random_int(33, 125));
generateRandomString(int $length)
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...