What is hashing? Hashing a password means that users cannot have their passwords compromised when a database engineer is reading cleartext in user databases (to a degree, the passwords could be decoded, but hashing them makes them illegible to someone who is not doing anything extensive). And also prevents hackers from reading passwords in plain text and can be compromised by collision attacks. Additionally when hashing a password a salt may be added to the password, this prevents a database from being attacked by dictionary attacks. Why Hash Passwords? Storing User credentials in Plain Text is generally as bad practice as it allows… Continue reading Using Hashlib to Securely store user passwords and credentials.
Virtual Hosts are great for servers, it allows you to have multiple domains, Subdomains and Users all use the same Web Host (Server) and Is easy to configure. First Please make sure your server is configured to use Virtual Hosts, See Here , Please note this is fundamental Now you have your domain on a Virtual host you can now add others, But you need to add your Host to your DNS zone file from your domain regestrar, See Here Now you are ready browse to your Apache installation folder and go to httpd-vhosts.conf [box type=”shadow”]apacheconfextrahttpd-vhosts.conf[/box] and… Continue reading Adding Virtual Domains to Apache
Using Apache is Good, but for one website is limiting its potential you can create multiple websites, domains and sub-domains with Apache, see below. First you need to stop your server, you can do this on lunix by entering [box type=”shadow”] $ sudo /etc/init.d/apache2 stop [/box] into your terminal, this allows you to make changes to files in your server without breaking it, for windows you need to stop Apache using Xammp, see below. Now Enable Mod_log_config browse here [box type=”shadow”]xamppapacheconf[/box] and in… Continue reading How to Configure Apache to use Virtual Hosts