/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function randomStr($length) { $randomStr = ""; $chars = array('2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'); if (0 == $alt) else } return $randomStr; } $len = (int) 8; // 1 trillion+ is enough doncha think? } $password = randomStr($len);
URL: http://code.cshaiku.com/code_php_password_generator.php
Comments
