19 declare(strict_types=1);
39 return "key_rotation";
46 if (is_readable(self::PATH())) {
48 $current_keys = require self::PATH();
53 if (is_array($current_keys)) {
55 $current_keys = array_slice($current_keys, 1);
56 $new_keys = $current_keys;
59 while (count($new_keys) < self::NUMBER_OF_KEYS) {
63 $new_keys = array_slice($new_keys, 0, self::NUMBER_OF_KEYS);
71 for ($i = 0; $i < $length; $i++) {
72 $return .= chr(random_int(33, 125));
build()
Build the artifact based.
This is an objective to build some artifact.
generateRandomString(int $length)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...