PHP Random Password Generator

How to create a random password generator with PHP

I found this cool snippet and I wanted to share it with you.

The code basically uses predefined characters to create a string.

You can set the length and the strength.

Now you just need to call the function wherever you want.

Your new password is

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.