Finish compose and add license comments

This commit is contained in:
theitaliandeveloper
2025-12-02 12:22:34 +01:00
parent 65d8c208bf
commit a7a77ebe85
23 changed files with 371 additions and 16 deletions

View File

@@ -1,9 +1,20 @@
<?php
// Hashed Password Generator
// Copyright (C) 2025 EmmeV. All rights reserved.
// Usage: php generate_hash.php password_to_hash
// Example: php generate_hash.php admin
/*
Orario Scuola, Copyright (C) 2025 EmmeV.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
if ($argc > 1) {
$primoArgomento = $argv[1];
$password = password_hash($primoArgomento, PASSWORD_DEFAULT);