PHP Script that generates a Random string that is the length of your choosing.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a simple PHP Script that will spit out a random string that defaults to 16 characters long. This default can be changed by passing a query string paramemter called "len" and setting it to whatever length you require.

This is being used to generate random passwords right now, however it could be used to generate random tokens for just about any purpose. To modify what characters will show up in your random string simple modify the $chars array to include any charachters I may have left out, or to remove some that I've included.