/** * Generate Password for this user * @return string */ public function generatePassword() { return zbase_generate_password(); }
/** * Generate a random code * @param integer $length * @return string */ function zbase_generate_code($length = 32) { return zbase_generate_password($length, 'lud'); }