[PHP] Generate a random password

Hi, because I need that from time to time and always looking again for a good function… here my memory aid. :-) $pwZeichen = ‘wertzupasdfghkyxcvbnmWERTZUPLKJHGFDSAYXCVBNM23456789’; srand ((double)microtime()*1000000); for($i = 0; $i < 5; $i++) { $passwort .= substr( $pwZeichen, (rand()%(strlen ($pwZeichen) ) ), 1); } In the variable $pwZeichen are all signs which can be […]