Should I even use hash passwords in this situation?

My site does not contain too sensitive data. I think about storing passwords, because if the user wanted to receive his password by e-mail (if he lost it), then I could send it to them, and not do something bulky and exhausting for users, such as sending them a new password was created (it is also ineffective).

Should I just keep them as is?

+3
source share
9 answers

No, you have their hash. Most users have the same password on multiple sites, so even if your site is not too sensitive, there may be other sites with the same username and password that are more sensitive.

If users forget their passwords, send them a new one.

+24
source

Why a dilemma? You probably shouldn't be designing an account management system yourself. Take some standard password management component and save yourself debugs and security errors.

+9
source

: YES, HASH (AND SALT) PASSWORDS, .

, , , , - , .

+8

- - , , - .

+7

- , : . , , .

, , .

+4

. , . , , , . , ( ), .

+2

. , , , , .

+2
+1

Definitely hash them; there is no reason not to. You can even encrypt the password in the user's browser and simply transfer the hash, for example. with the code used here .

0
source

Source: https://habr.com/ru/post/1726700/


All Articles