snippets / PHP random password

Language: Php - First posted by alqimantas on 2008-04-17 09:53 (7 months, 1 week)
Link to the snippet: http://www.friendsnippets.org/snippet/254/

Generates random php password from [0-9a-z] characters.

1 <?php echo base_convert(rand(0, PHP_INT_MAX) . rand(0, PHP_INT_MAX), 10, 36);
In order to post a comment, you should have a friendsnippet account. Please sign-in.

0 comments

Apr '08
  • Generates random php password from [0-9a-z] characters.