I want to protect my some of webpages hosted my xampp using the same method the xampp folder is protected by.
I have seen that xampp folder is protected using an htaccess and the users / passwords are stored in xampp.users file .
I have made an htacess refrencing the file test.users and a made a php script to write the test.users file which writes the username and password but as the passwords are encrypted i do not know how to encrypt at all.
How can i encrypt the password so that it protects a folder properly?
Thanks,
Alex