mongoose-auth icon indicating copy to clipboard operation
mongoose-auth copied to clipboard

Don't store the salt in the database

Open sjoerdmulder opened this issue 12 years ago • 0 comments

The salt is already incorporated inside the hash field, so there is no need to store this in the collection as an extra field:

When authenticating it is not using it.

See: http://stackoverflow.com/questions/277044/do-i-need-to-store-the-salt-with-bcrypt

sjoerdmulder avatar Mar 16 '12 11:03 sjoerdmulder