This PHP script generates randomly a password. It allows you to choose the number of characters of the password and the type of the characters: lower case letters (abcdef…), capitals (ABCDEF…), digits (012345…) and symbols (!@#$%…).
The big advantage of using randomly generated passwords is that this kind of passwords are very hard, perhaps impossible, to be cracked by a malicious script or to be guessed by someone. So, everytime when you will use a randomly generated password you will be protected against brute force attacks, dictionary attacks, social engineering.
But these passwords have a major issue: they are very hard to be kept in minde. Because of this reason, we should learn to choose personally a password. A password must be easily kept in mind but strong enough not to be cracked or guessed. So, I will show a technique to reach this target. We have to pick a word familiar to us and to write it down using a special alphabet. For a clearer understanding I will present a demonstration. I choose my name “Marian” as a password and I write it down like this: |\/|@r!@|\|. As everybody sees, I replaced “m” with “|\/|”, “a” with “@”, “i” with “!” and “n” with “|\|”. Regarding the others letters of latin alphabet we can replace :