![]() If you have any problems, concerns, or improvements, feel free to contact me at Of course this project is available at Git Hub under so feel free to branch this project and make any changes you want. This will create 250 passwords of complexity 1. Php -r "require 'create-example-passwords.php' createExamplePasswords(1, 250) " > example-passes.txt An example of doing this on Unix can be found below: I recommend running it via the command line and saving the output to a file. This can be found in the main php-password-generator/ folder. If you're looking for more examples or want to create some examples yourself, I've create another script called create-example-passwords.php. They are labelled with their complexities in the file names and have 250 examples of passwords from that complexity level. Good luck!Įxamples of the three levels of complexity can be found in the examples/ folder. You will have to read the code and figure this out on your own. Non WordPress users have to make your own template that works by calling the password-generator.js file as an AJAX call. You can simply select the page you want to contain the password generator, give it the template of "PHP Password Generator" and then everything should work on that page. Next, open the template-password-generator.php file and modify the $THEME_FOLDER variable to match the folder of the theme you are using.Įverything should work from here. ![]() ![]() If you are using WordPress (which is what this is made for) then simply copy the entire php-password generator folder into the directory of the theme you are using. The passwords returned look like two english words that are perfectly readable (although granted some of the words in the Unix dictionary are not regularly used in everyday language). Once the particular character has been changed to its corresponding symbol or number, the password is returned. In the future it would be nice to have a feature which determines how secure the password has to be, and then scale the password with tricks such as these to increase the security. There is also a 20% chance that the password generator will add an "!" to the end of the password, and another 20% chance that the generator will add a "#" to the front of the password. Note that if you want to add more levels, you will have to add the code yourself. This will change the amount of mappings that occur.īy default the password generator has 3 levels, but you could change this to best suite your individual needs. The user can make the distinction between a more readable password or a more secure password. The number of characters replaced is determined by the "readability" level of the password. The script then replaces a certain amount of instances of the chosen valid character in the combination word with a number or symbol to increase the strength of the password. The script then takes the first character from the valid characters array, which will be random thanks to the shuffle done to the array. Once all the valid characters are found from the combination word, the array of valid characters is shuffled. If the script finds these characters, they are added to an array of valid characters. The script then searches the combination word for certain characters. The script takes the two words, capitalizes their first letters, and finally concatenates them together. ![]() This PHP Password Generator creates a randomly generated password from two randomly selected words from either the Unix Dictionary file ("/usr/share/dict/words") or a word from a list of adjectives and a word from a list of animals. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |