![]() |
How do big companies like VB store passwords?
How does VBulletin or Paypal store their passwords? Can you tell me in a way that I can copy? :P
|
Passwords for what? They store the database passwords in a file and most of the others in the database. I've never seen paypal's source, so I dont know what they do.
|
like, database passwords.
does vb like... do salt first, or even use a salt? do they combine md5 with sha1 or do they use one or the other? |
Quote:
|
Quote:
|
My bet is that Paypal uses an encryption for their data and not Hash and salt.
Can be wrong, but i don't think that a site as Paypal can't afford not to be as safe as possible. |
Quote:
|
Quote:
|
I mean like the database password for users. Do they shai($username . $salt) or what?
|
Quote:
|
just sha1, or do they use a salt? Is the salt before or after the password? :/
|
Quote:
|
VB does
Code:
md5(md5($password) . $salt); |
There's way better encryption than MD5 and SHA1, and if it was needed could easily be implemented, but for one problem. At least in this country, which like it or not has a heavy hand when leaning on other countries to do the same - the government doesn't want the public to have stronger encryption, because then they risk the possibility that they won't be able to crack civilian communications when ever necessary. </today's fun little conspiracy factoid>
-m |
Quote:
|
The reason they use something like that is first there something called rainbow tables or glorified brute forces that try and guess your password, add a salt and it gets that much harder but they can add the salt to the list and have them md5 that now md5 the password then salt it and md5 it and it just's that much harder to crack...
In the end MD5 and SHA1 have been cracked because computers can't do true random numbers (they're based off algoritms like the twister) and thus reversible. so if a team of determined hackers want your password than they will get them, the only true way to be secure from network intrusion is to black box it - I find security to be more a game of "Tire out the hacker" then "Keep the hacker out" (I refrain from using "he" or "him" because some girls are very nasty hackers..) |
Quote:
|
Quote:
|
For my projects I use a combination of 2 salts (1 Static, 1 Dynamic). When a user registers to my website the backend will generate a random salt key for each user. Even if 2 different users register to my website with the same password, the resulting hash will be different.
So if the database was ever hacked or stolen, they would be missing the static salt key, thus it would prove to be impossible for them to bruteforce any of the passwords. However I'll touch wood, just incase. |
1 dynamic? How do you go about that, if I may ask? As far as I understand you need the same SALT to unhash as you use in the hash, so don't you have to store the dynamic one somewhere?
-m |
| All times are GMT. The time now is 11:51 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0