﻿================================================================================

                  Apache-HT User/Pass Generator Written In Php
                  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
                            By Alessandro Marinuzzi
                            ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯


    INTRODUCTION:
    ¯¯¯¯¯¯¯¯¯¯¯¯¯
    I wrote Apache-HT only for my personal use.  Now I decided to release public
    this my useful script.  This script generates two files called .htaccess and
    .htpasswd wich are used by Apache  Server to store User/Pass for the current
    folder. This script works also under Windows and provides a better method to
    store User/Pass with salt.


    REQUIREMENTS:
    ¯¯¯¯¯¯¯¯¯¯¯¯¯
    • Apache Server. Better with version 2.4.
    • Php 8.5+ or better installed on the Server.


    FEATURES: (version: 2.2 - date: 20.07.2026)
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    • it's simple, fast and secure.
    • it has a very nice look.
    • it uses high efficency algoritm to store user/pass with salt.


    CHANGES:
    ¯¯¯¯¯¯¯¯
    • New Refactoring.


    NOTES:
    ¯¯¯¯¯¯
    Pay attention! Don't use special characters since basic auths don't use them
    and insisting on wanting to use them may happen strange behaviors.


    INSTALLATION:
    ¯¯¯¯¯¯¯¯¯¯¯¯¯
    Simply you have to follow these simple steps:
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    1) create a folder under your Web Server where you want.
    2) upload the script apache-ht.php in this folder.
    3) execute the script apache-ht.php providing your credentials.
    4) now the folder is protected by Apache Server!


    AUTHOR:
    ¯¯¯¯¯¯¯
    Alecos -> Alessandro Marinuzzi (Italy)
    WebSite:  https://www.alecos.it/


    STATUS:
    ¯¯¯¯¯¯¯
    Apache-HT © 2019-2026 • Alessandro Marinuzzi [Alecos]. All Rights Reserved.

    Apache-HT is Donationware!  This means that  if you like  this software  you
    could decide to  make me a Donation  using PayPal. In this way you will keep
    the development of this software alive! Thank you for your support!

    Visit my website for making a Donation!


    LEGAL:
    ¯¯¯¯¯¯
    This software is subject to the following terms of licence:
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    1) You cannot distribute  this software  together to  the obscene or illegal
       stuff.
    2) You accept any risk downloading this software as described below.
    3) If you don't agree with these terms of licence, delete this software now!
    4) This software is under Donationware License!


    DISCLAIMER:
    ¯¯¯¯¯¯¯¯¯¯¯
    THIS  SOFTWARE IS  PROVIDED "AS IS", WITHOUT  WARRANTY  OF ANY  KIND, EITHER
    EXPRESSED  OR IMPLIED, OR OTHERWISE. BY USING THIS  SOFTWARE, YOU ACCEPT THE
    ENTIRE  RISK. ALESSANDRO MARINUZZI  SHALL BE  NOT LIABLE  FOR ANY  DIRECT OR
    INDIRECT  DAMAGE, INCLUDING DAMAGE FOR ANY  DATA OR INFORMATION WHICH MAY BE
    LOST.

================================================================================