add key generator

This commit is contained in:
Christopher 2020-10-23 23:35:22 +02:00
parent 9b302c4938
commit 8a05cde88d
1 changed files with 17 additions and 0 deletions

17
pages/generateKeys.php Normal file
View File

@ -0,0 +1,17 @@
<?php
echo "Print all login data to STDOUT... ";
$dockerClient = new Docker();
$allContainers = $dockerClient->getAllContainers();
foreach($allContainers as $thisContainer)
{
$apiKey = calcAPIKey($thisContainer);
fwrite(STDOUT, $thisContainer['Name']." == ".$apiKey);
}
echo "done."
?>