$maxTime) { return false; } return true; } private static function generateSalt() { $length = 10; $chars='1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'; $ll = strlen($chars)-1; $o = ''; while (strlen($o) < $length) { $o .= $chars[ rand(0, $ll) ]; } return $o; } } ?>