Security is one the major factors that every programmer or user of web applications that involves communication has to consider. Hacking of systems is a very common phenomenon today and thus programmers are putting various measures in place to prevent attacks from hackers. One of such measures is the use of the password hashing technique. This is a technique that involves encrypting passwords when storing them instead of storing them in the plain text form. It is a mean of secure password storage. It is very important for security as it protects the stored passwords from being read if the database is hacked or accidentally gets into the wrong hands. PHP supports password hashing to prevent attackers from gaining stored passwords from various web applications in case.
In password hashing, the user passwords in plain text are converted into hash codes before storing. A hash code is some kind of digital fingerprint of a piece of data. It is generated using a one-way algorithm. A one-way algorithm implies that it is almost impossible to perform the reverse computation using the result to obtain the original data. Hence with the hash codes it is almost impossible for anyone to obtain the original password text. Thus when passwords are stored as hashes, even if an attacker successfully compromises with part of the system and reveals the list of hash codes, he cannot manage to get the stored password.
Password hashing in PHP
In PHP, password hashing is done using a number of hash algorithms. The main algorithms used for generating a hash of text are MD5, BCRYT and SHA1. These algorithms are efficient and collision rarely occurs. Collision refers to generation of the same hash code for two different texts. Pass wording hashing is performed during user registration. The same algorithm used during user registration is used during user authentication. The MD5 algorithm is implemented with the md5() function as follows:
$password =md5 ($password;
This statement creates an MD5 hash code of the password.
This function generates a 128-bit hash code out of the given password. The SHA1 is implemented in the same way using the sha1() function, and produces a 160-bit hash code. The sha1 function has lower chances of collision occurrence as than the md5 function as it produces more bit hash and the probability of collision occurrence decreases with the increase in bits. Probably you are thinking that hashing the password twice would result into a more secure password. This sounds logical but it does not work. It is something you should not try as it weakens the security of your passwords instead. It makes the hash inefficient and week as it increases the chances of collision.
As PHP has continued to evolve, these algorithms have been found less efficient and more efficient functions producing more bit hash codes are being utilized. Modern PHP is using algorithms from the SHA2 family such as the SHA256 and SHA512 which produce 256 and 512 bits hash respectively for password hashing. The functions result to better hashes with very little chance of collisions occurring. Their functions are implemented in code as follows:
Wedding sites are great for keeping the most precious memories of life. Besides, it’s a good opportunity to announce about the upcoming ceremony, invite guests, show the gift list and get plenty of pleasant wishes. If you’re going to start such a site, make it easily. We want to share with you a ready-made Free Website Template for Wedding Site. You don’t need any extra skills to redesign it, ‘cause it is done by professional designers with your needs in mind. This theme is perfect for wedding site, but can be easily customized according to the needs of any other online business.
This sophisticated and beautiful style is a synonym for romance. The subtle rosy colors create pleasant on the eye tone and welcome the viewers to enter the site. Thought-out navigation with drop down menu and graphic elements that easily guide through the page facilitate the work with the site. Nice slider in the top features the best moments of couple’s life and gallery is ready for presenting the photos from the wedding ceremony. The theme goes with sections where the guests can read love story of a couple and find the gift list. To see how this elegant design will look like as a real website, check out its free template live demo.
Follow the link below to get this goodie, and start a wedding site easily!
Free Website Template for Wedding Site:
Feel free to get this free website template with PSD source files. To download this theme with PSD files, visit the Free Website Template for Wedding Site download page at TemplateMonster and type an email address that you want the free template package to be delivered to (don’t forget to uncheck the newsletter subscription checkbox in case you’re already subscribed, otherwise you may not be able to download the zip file). Feel free to use this template for your business, but you cannot resell it as a template.
IMPORTANT NOTICE:TemplateMonster does not provide support services on free templates – including this one. We only provide support for the products that are being purchased from TemplateMonster. Our free templates are produced according to the latest web standards and we’ve been trying to make the process of working with them as easy as possible, so for people with minimum web development experience it should be easy to work with them. However, if you don’t have any experience, we recommend you to refer to the tutorials or community forums on how to work with platforms that each respective template is made with, or to hire someone to do the job for you.
The nowadays pace of life makes us act and react more actively. A great assistance here can be planning. When we know exactly what we should do, we never panic trying to trump up some action. Talking about the internet the situation is similar: especially it concerns scheduling of different tasks, because it’s impossible to spend all time 24/7 on a website.
WordPress has a wonderful solution for that and it’s called WordPress Cron. Originally Cron is a UNIX command to schedule tasks. WP-Cron concept has similar functions, however a developed and adapted for WordPress conditions. It would fit either for periodical actions (for example for emailing with a blog newsletter evry week) or for daemon process (launching process, once a certain event occurs).
I believe WP-Cron is a wonderful thing to improve your WordPress website. So, let me represent 11 articles teaching to exploit this function and to develop its effectiveness. The difficulty is from easy to hard.
* * *
* * *
Since the invention of written language typography became an important thing: just remember the art of Chinese or Japan calligraphy. Times passes, epochs follow one another: but for the typography only the form changes, not the essence. Today we improve letters most widely on the internet, typography design is one of the major sections in web design.
We got used to flat typography, like we have in books, newspapers, magazines and most websites. However, information technologies give a wonderful opportunity to widen the borders and to create volumetric font. Especially they would fit some logo inscriptions and other text of slogan character. Would you like to be inspired? I gathered 30+ 3D typography examples. Enjoy.
* * *
* * *
* * *
HTML5 Boilerplate is a remarkable front-end HTML template. This tool is definitely a great assistant for creating websites and apps – many giants use it for their needs: Barack Obama, Google, Microsoft, Nike and other. HTML5 Boilerplate is fully responsive being exactly appropriate for the latest tendencies of mobile web growing. Also there would be no troubles with a search engine optimization – Google Analytics snippet would ease the process very much. By the way, about snippets: Google Analytics is not the only one – HTML5 Boilerplate indeed can be improved by a bunch of useful code snippets. Moreover, they come out the borders of HTML5BP – many HTML templates would fit.
So, I skip the introduction to HTML5BP basic usage, because all of that you can watch on YouTube. Going further, I’d like to present 10 snippets for HTML5 Boilerplate. Let’s start from the Google Analytics.
* * *
* * *
There are a great many different image options – and different file formats – available for any designer to work with, so it can be a little bit overwhelming when you have to choose which one to use, especially if you will be sending your finished work to a client.
Compatibility is certainly something to be concerned about, however, whenever you are working with graphic and images, especially text and fonts it is far more important to be concerned about just how those images are going to render.
There are two basic types of digital graphics files to choose from, vector and raster. Vector images are comprised of thousands, actually hundreds of thousands, of minute lines and curves that are put together to form an image. On the other hand, raster images are made up of a myriad of pixels. So which format is best for your particular project?
Full photo backgrounds were claimed to be a trend for 2013 at the beginning of the year (the prophet’s article). The forecast was true, indeed. Nevertheless it wasn’t full enough.
Recently I met a lot of websites and templates with fashionable full or large photo backgrounds, and I noticed a certain tendency: they more often contain such remarkable feature as sliding backgrounds. Yes, the large image backgrounds are sliding the same way the pics in boring mainstream banner sliders do. Sometimes the sliding mechanism for backgrounds is influenced with parallax scrolling effect, giving more motion and depth to fashionable flat designs. I think that the best explanation is a practical one, so let me show you couple examples: one and two.
Sliding backgrounds definitely look cool, don’t you think? Well, if you agree with me, my efforts are fully renumerated, because in this post I gathered for you 7 clear sliding backgrounds tutorials. Enjoy.
* * *
* * *
* * *
Hover effect is simply a change (of color, size, shape, image etc.) of some element while you put a mouse arrow over it. Commonly it is achieved with CSS coding. The hover effect is not cranky at all and can be used practically for any CSS element.
The easiest way to make the hover effect in CSS is using :hover selector, which is a CSS pseudo-class. It would take no extra efforts to put a hover selector in the code. Let’s review a background color change for a link: you just need to add this after selecting and styling a link.
Working in web design and development field, many smart professionals like to keep a kind of library with various goodies in order not to lose time searching for them in case of necessity. If such behavior is habitual for you, today you have a brilliant chance to fill your stock with a good portion of themes from DXthemes.
So, what can you get out of this Mighty Deal?
- - The bundle you acquire includes more than 20 WordPress themes with different designs. 4 of them are e-Commerce stores developed for selling various stuff and 18 are WordPress Themes intended for business and portfolio websites.
- - Need a rigorous HTML5 template? You get 32 of them in this bundle. Just imagine, how much time these top-quality themes for hotels, real estate agents, lawyers, businessmen, education enterprises, architectural bureaus and other businesses can save you.
- - HTML5 templates are fully responsive that has crucial significance for modern community as people may use any portable device (from smartphone to laptop) with internet access to browse the perfectly rendered websites. Due to the fact that the themes are built with Twitter Bootstrap, their codes are easy to handle and customize.
- - All of the themes are SEO optimization friendly, which guarantees high search engine rankings of your clients’ websites.
- - The templates are very easy to install and maintain. Bringing site to operation won’t take any considerable time investments as well as its consequent update.
- - The deal provides commercial license for all themes and templates, that is, you can use them for your own website or client’s website as well. The number of sites, created on the bases of templates is also unlimited.
And now, we invite you to view what’s inside the bundle with your own eyes!
WordPress eCommerce Themes
HTML5 Responsive Twitter Bootstrap Templates
We have a lot of ways to manage the web pages and to make them better and more attractive. If not talking about the objective characteristic, our choice is mostly determined by the difficulty of realization. Today I’d like to introduce one simple way to improve your projects.
CSS pseudo-classes are things adding special effects to certain selectors. Do you want the buttons to blink? Do you want the links to be dynamic? Sure, no problem, you just need to find out how to work with CSS3 pseudo-styles. For this purpose I want to share with you the 10 tutorials I found on the web – they should help you to get the basic knowledge of dealing with pseudo-classes.
* * *
I believe it’s the most optimal tutorial for newbies, which contains general information. Nevertheless, “general” doesn’t mean truncated: the article is big and improved with examples, so you’ll need some time to learn everything from it.
* * *
This guide is very simple and short, however it’s quite informative and can give an idea of what CSS3 pseudo-classes are and how they should be coded. It’s great for those, who doesn’r need to become a pro, but must know the basic minimum.