•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 375,170 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,216 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1407 | Replies: 1
![]() |
•
•
Join Date: May 2006
Posts: 56
Reputation:
Rep Power: 3
Solved Threads: 0
Hi friends,
The code i attached is used for checking password strength!. I have a html page which calls this.
Problem is if i change the following code
Code:
Am worse in java so confused!
Please help!
link for my file : http://rapidshare.com/files/53549352...ength.zip.html
file size is 2kb
The code i attached is used for checking password strength!. I have a html page which calls this.
Problem is if i change the following code
Code:
if (bCheckLowerCase)
{
strCheck = "abcdefghijklmnopqrstuvwxyz";
if (doesContain(strPassword, strCheck) > 0)
{
nCombinations += strCheck.length;
}
}
to
Code:
if (bCheckLowerCase)
{
strCheck = "a";
if (doesContain(strPassword, strCheck) > 0)
{
nCombinations += strCheck.length;
}
}
then also if i enter "abcde" the thing works..ie it then also works for all lowercase alphabets.. how does it do so..
also what does this part of code do..
Code:
// -- 500 tries per second => minutes
var nDays = ((Math.pow(nCombinations, strPassword.length) / 500) / 2) / 86400;
// Number of days out of password lifetime setting
var nPerc = nDays / nPasswordLifetime;
return nPerc;Please help!
link for my file : http://rapidshare.com/files/53549352...ength.zip.html
file size is 2kb
Last edited by ~s.o.s~ : Sep 5th, 2007 at 12:46 pm. Reason: Added code tags.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- How to crack a simple password? (C++)
- Need help with password strength test script (PHP)
- connect to password protected access db (Visual Basic 4 / 5 / 6)
- Windows 2000 Password Expired (Windows NT / 2000 / XP / 2003)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Pls help me related to jS.. urgent
- Next Thread: IQ question



Linear Mode