Reputation
2,962
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
1 11 19
Newest
 Yearling
Impact
~223k people reached

  • 0 posts edited
  • 0 helpful flags
  • 283 votes cast
Apr
27
comment Should password reset tokens be hashed when stored in a database?
@IanWarburton - No, hashing is a one-way operation and doesn't need a secret key. You probably think of an encryption algorithm which needs a key to decrypt the string. You could have a look at my tutorial about safely storing passwords to get more in-depth information.
Apr
27
comment Should password reset tokens be hashed when stored in a database?
If an attacker has read access to the database (SQL-injection), he could request a reset for any account he wants, even for admin accounts. Because he can see the new generated token, he could take over this account.
Apr
26
comment Should password reset tokens be hashed when stored in a database?
@IanWarburton - If your token has enough entropy, lets say 20 random characters 0-9 a-z A-Z, then you can calculate an unsalted fast hash (e.g. SHA-256 or SHA-512) and store it. This is safe, because it is not possible to successfully brute-force such strong "passwords". Salting is done, because passwords choosen by people are often relatively weak, because they have to be remembered.
Mar
19
comment Is it possible to perform a MITM attack with a smartphone?
Moxie Marlinspike demonstrated something similar with his notebook, and people did connect to his hotspot, see the SSL-strip demo.
Mar
11
awarded  Yearling
Mar
8
comment Why do major sites(Facebook, Google, etc) still send passwords unhashed?
@RobW - This is good news, thanks for the info. It seems that key derivation functions are not widely supported yet, but anyway it looks promising.
Mar
4
comment Why do major sites(Facebook, Google, etc) still send passwords unhashed?
@Eckster - There is no reason this cannot be done on optimized hardware. Wellknown password cracker tools like hashcat support brute-forcing SHA* on GPUs, not to mention dedicated NSA hardware.
Mar
4
comment Why do major sites(Facebook, Google, etc) still send passwords unhashed?
@Eckster - I doubt it, because this is a race between a relatively slow interpreted script language, and optimized hardware like GPUs or even dedicated hardware, which can do calculations parallel.
Mar
4
answered Why do major sites(Facebook, Google, etc) still send passwords unhashed?
Feb
19
comment Do most browsers handle mixed encrypted and unencrypted content correctly?
@trlkly - I think the decision to warn from mixed content is a good one. It would be very difficult for a user to know which parts are safe and which are not. Who says that a picture doesn't contain sensitive data? What other resources should be allowed unencrypted, webfonts, movies, external scripts? If an attacker can deliver an exploit inside a picture or movie, he could take over the client. A cookie can be restricted to HTTPS but do all developers know this and no one forgets to do it?
Dec
18
revised Is SSL more secure than encoding?
edited body
Dec
18
answered Is SSL more secure than encoding?
Sep
29
comment PBKDF2 used to generate an encryption key: long shared secret (password) vs iterations count
@ggo - Of course it depends on the importance of the data you want to protect, but at least you should explain it in the GUI where the administrator will enter his password. Even companies like Microsoft expect to tell them a generated token for activating their software, such a token would be a strong password.
Sep
29
comment PBKDF2 used to generate an encryption key: long shared secret (password) vs iterations count
@ggo - Well then the PBKDF is indeed the way to go, i edited my answer accordingly.
Sep
29
revised PBKDF2 used to generate an encryption key: long shared secret (password) vs iterations count
added 588 characters in body
Sep
28
revised PBKDF2 used to generate an encryption key: long shared secret (password) vs iterations count
edited body
Sep
28
answered PBKDF2 used to generate an encryption key: long shared secret (password) vs iterations count
Sep
25
revised Why don't sites implement a system where a wrong password causes a 3 second delay?
edited body
Sep
25
answered Why don't sites implement a system where a wrong password causes a 3 second delay?
Sep
19
comment What are the differences between dictionary attack and brute force attack?
Most password cracker tools offer hybrid modes, where they prefer words from a dictionary, test variations, and finally test with brute-forcing. So you cannot always distinguish between the attacks, have a look at the attack-modes of hashcat for example.