Connecting Tech Pros Worldwide Forums | Help | Site Map

code that check if some password is good

Newbie
 
Join Date: Oct 2009
Posts: 10
#1: Oct 19 '09
i want to make a site that can check if some password that i have is good. the software need to go to the site. and check whether the password is good.
how can i do it?

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,670
#2: Oct 19 '09

re: code that check if some password is good


simple course of action:
- get the password
- hash the password
- check if the hash matches one of the (valid) hashes saved in your DB
Newbie
 
Join Date: Oct 2009
Posts: 10
#3: Oct 19 '09

re: code that check if some password is good


i want that this simple course of action will happen automaticlly.
because i have tons of passwords.
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,758
#4: Oct 19 '09

re: code that check if some password is good


Quote:

Originally Posted by amd321 View Post

i want that this simple course of action will happen automaticlly.
because i have tons of passwords.

So, basically, you want us to make you a brute-force password cracking script?

What is it that you are trying to do here? Hack your way into somebodies site?
If not, and this is in fact your site, why not just go into the database and fetch the password, rather then create this script to test for it?
Newbie
 
Join Date: Oct 2009
Posts: 10
#5: Oct 19 '09

re: code that check if some password is good


my site collect good(leagl) passwords.
so every password that people giving me i need to check and then i published them
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,953
#6: Oct 19 '09

re: code that check if some password is good


Quote:

Originally Posted by amd321 View Post

my site collect good(leagl) passwords.
so every password that people giving me i need to check and then i published them

What defines a 'good' password?
TheServant's Avatar
Expert
 
Join Date: Feb 2008
Location: Australia
Posts: 919
#7: Oct 20 '09

re: code that check if some password is good


Quote:

Originally Posted by amd321 View Post

my site collect good(leagl) passwords.
so every password that people giving me i need to check and then i published them

Collects passwords and publishes them?

So you want to check if the passwords in your database work on other sites, like a way to hack into email accounts? I think you need to explain your full intentions as this sounds concerning as to what you plan on doing.

But yes, the key question is,
Quote:

Originally Posted by Markus

What defines a 'good' password?

Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,758
#8: Oct 20 '09

re: code that check if some password is good


I'm struggling to think up a reason why people would willingly give you their passwords for you to publish on your site. A password is not usually something you want other people to know about.

As I am understanding this, you are either trying to do something illegal/immoral, which we won't help you with (and you won't *trick* us into helping you with)... Or we aren't exactly understanding each other.

Please, elaborate on what you are trying to do.
Maybe you could give us an example?
Reply